Quick Thoughts

Suppress Windows 11 Upgrade Prompts

We have machines that we want kept on Windows 10, we don’t want users urged over and over again to upgrade to 11. Save the following code to your machine as a PowerShell script (.ps1), run it, reboot, and we’re good:

# Exit script if this is not Windows 10
If ((Get-ComputerInfo | Select OSName).OSName -notlike "Microsoft Windows 10*")
    { 
    "This is not Windows 10. Exiting..."
    Exit 
    }
#Proceed
Set-Location -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows
If (-Not (Test-Path -Path WindowsUpdate)) { MKDIR WindowsUpdate }
Set-Location -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
New-ItemProperty -Path . -Name "ProductVersion" -Value "Windows 10"
"Done!"

Note that many so-called solutions out there set things so no further updates, including Windows 10 build upgrades, will happen at all. The above simply limits things to Windows 10.