Add disable-insider-ui-page.ps1 (#34499)

This script disables the UI page where users can opt into the Windows
insider program.


# Checklist for submitter

If some of the following don't apply, delete the relevant line.

## Testing

- [x] QA'd all new/changed functionality manually

---------

Co-authored-by: Dale Ribeiro <dale@fleetdm.com>
This commit is contained in:
Mason Buettner 2025-10-22 10:57:12 -07:00 committed by GitHub
parent 7593d102fb
commit b3fa01a144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,9 @@
# Disable Windows Insider opt-in UI page
# Verify that the registry path exists, and creates it if not.
$regPath = "HKLM:\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility"
if (!(Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
#Set DWord value to hide the Windows insider page under Windows Update
Set-ItemProperty -Path $regPath -Name "HideInsiderPage" -Value 1 -Type DWord