RELOPS-2248: Suppress focus-stealing notifications on win11-64-24h2#1084
Open
RELOPS-2248: Suppress focus-stealing notifications on win11-64-24h2#1084
Conversation
Fix WER registry key path (was writing DontShowUI to wrong key), disable toast notifications via Group Policy, remove SecurityHealthSystray from startup, and disable RecoverabilityToastTask/WhesvcToast scheduled tasks.
Moves ensure => absent before key in SecurityHealth registry value.
registry::value (defined type) doesn't support ensure => absent. Use the native registry_value type with full key path instead, matching the pattern in disable_defender_smartscreen.pp.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RELOPS-2248 / Bug 2002658
Summary
DontShowUIto a phantom key (Windows\Error\Reportinginstead ofWindows Error Reporting)These are the focus-stealing sources identified on live win11-64-24h2 workers that cause
test_autoplay_policy_key_blacklist.htmland other focus-sensitive tests to hang indefinitely.Context
Bug 2002658 tracks intermittent hangs in
synthesizeKeyAndWait()across multiple autoplay tests on win11-64-24h2. Investigation on a live worker found:DontShowUIwas written to the wrong registry path (three separate subkeys instead of the single "Windows Error Reporting" key)No new profiles or role changes needed.
disable_notificationsanderror_reportingare already included in win11-64-24h2 roles, anddisable.ps1already runs for Azure workers.Test plan
reg query "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DontShowUIreturns 1reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableNotificationCenterreturns 1reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SecurityHealthreturns not foundGet-ScheduledTask RecoverabilityToastTaskshows Disabled