Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active January 25, 2025 11:22
Show Gist options
  • Save AzimsTech/9edae8568946ec07ca667453b5d11564 to your computer and use it in GitHub Desktop.
Save AzimsTech/9edae8568946ec07ca667453b5d11564 to your computer and use it in GitHub Desktop.
Prevent Windows Update from downloading Windows 11 24H2

Prevent Windows Update from downloading Windows 11 24H2

To block 24H2:

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ProductVersion" /t REG_SZ /d "Windows 11" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersion" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersionInfo" /t REG_SZ /d "23H2" /f
reg add "HKLM\SYSTEM\Setup\UpgradeNotification" /v "UpgradeAvailable" /t REG_DWORD /d 0 /f

Undo block 24H2:

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
reg delete "HKLM\SYSTEM\Setup\UpgradeNotification" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment