Skip to content

[Windows] Disable the first-logon privacy experience on ARM64 images - #14673

Open
EDM115 wants to merge 1 commit into
actions:mainfrom
EDM115:fix/edm115/windows-arm64-privacy-experience
Open

EDM115 wants to merge 1 commit into
actions:mainfrom
EDM115:fix/edm115/windows-arm64-privacy-experience

Conversation

@EDM115

@EDM115 EDM115 commented Sep 2, 2026

Copy link
Copy Markdown

Note

Disclosure : This PR have been created with the help of AI (GPT 5.6 Sol) but reviewed by HB (Human Brain 😄)

Description

Bug fixing
Windows 11 ARM64 runners can display the "Choose privacy settings for your device" experience during first logon, taking focus away from applications and breaking automated GUI tests.
Sets the documented machine-wide DisablePrivacyExperience policy to DWORD 1 in Configure-BaseImage.ps1, guarded by Test-IsWin11-Arm64. Both Windows 11 ARM64 image variants already execute this script before image capture, so the policy applies to newly created runner accounts rather than only the image-build account.
Add a read-only Pester assertion in WindowsFeatures.Tests.ps1 that verifies the policy value and registry type. Run it immediately after configuration and through the existing full image test suite. The configuration and assertion are restricted to Windows 11 ARM64.
Microsoft documents the policy here : https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-privacy#disableprivacyexperience
This change prevents the privacy experience from launching on subsequent eligible logons. It does not dismiss an already-open window or address the separate OneDrive and WSL prompts discussed in the issue. No process termination, UI automation, or background watcher is added (which are current workarounds).

Validation

  • Tests has been ran and passes
  • A complete Azure image build and first-logon GUI validation have not been run locally

Related issue :

Closes #14069

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

- apply the machine-wide OOBE policy before image capture
- validate the policy value and DWORD type with Pester
- leave non-ARM64 image behavior unchanged

closes actions#14069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows-11-arm GUI system tests can fail due to privacy settings taking focus

1 participant