by arca_vorago · 10y ago · 0 comments
taskkill /IM GWX*
takeown /r /d N /f c:\windows\system32\gwx
icacls c:\windows\system32\gwx\. /c /t /deny everyone:F
icacls c:\windows\system32\gwx /c /t /deny everyone:F
reg add HKLM\Software\Policies\Microsoft\Windows\Gwx /v DisableGwx /t REG_DWORD /d 1
edit: one thing I ran into that caused me to use this hackish script is that, at least in the early GWX days, windows updates were re-enabling the GWX and update registry keys. So a few tuesdays later and GWX is back and asking to upgrade again.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade] "ReservationsAllowed"=dword:00000000 "KickoffDownload"=dword:00000000 "KickoffSource"=dword:00000000 "AllowOSUpgrade"=dword:00000000 "Refresh"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade\State] "OSUpgradeState"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "DisableOSUpgrade"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] "DisableGwx"=dword:00000001