update to 21H2

This commit is contained in:
2022-07-26 08:56:11 -04:00
parent ba99f71d26
commit 1a8cf657e7
+1 -1
View File
@@ -37,7 +37,7 @@ Function IsWindowsVersion {
If ( (IsWindowsVersion -ge "10.0.17134") -and (IsWindowsVersion -le "10.0.19044") ) { 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 # 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" $BaseRegPath = "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"
If (-not (Test-Path $BaseRegPath) ) { New-Item -Path $BaseRegPath -Force | Out-Null } If (-not (Test-Path $BaseRegPath) ) { New-Item -Path $BaseRegPath -Force | Out-Null }