From 1a8cf657e7c01fb02166c76644eb90b39cf431a4 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Tue, 26 Jul 2022 08:56:11 -0400 Subject: [PATCH] update to 21H2 --- Fix-PreventWindows11Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fix-PreventWindows11Upgrade.ps1 b/Fix-PreventWindows11Upgrade.ps1 index acc05a6..396e287 100644 --- a/Fix-PreventWindows11Upgrade.ps1 +++ b/Fix-PreventWindows11Upgrade.ps1 @@ -37,7 +37,7 @@ Function IsWindowsVersion { If ( (IsWindowsVersion -ge "10.0.17134") -and (IsWindowsVersion -le "10.0.19044") ) { # This is the version of Windows 10 you want to update to, but no further - $MaxWindowsVersion = "21H1" + $MaxWindowsVersion = "21H2" $BaseRegPath = "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" If (-not (Test-Path $BaseRegPath) ) { New-Item -Path $BaseRegPath -Force | Out-Null }