Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashtafak/c3ce422b49a65f9ef52ccb62a6854241 to your computer and use it in GitHub Desktop.
Save hashtafak/c3ce422b49a65f9ef52ccb62a6854241 to your computer and use it in GitHub Desktop.
Disables Windows Update with PowerShell
# set the Windows Update service to "disabled"
sc.exe config wuauserv start=disabled
# display the status of the service
sc.exe query wuauserv
# stop the service, in case it is running
sc.exe stop wuauserv
# display the status again, because we're paranoid
sc.exe query wuauserv
# double check it's REALLY disabled - Start value should be 0x4
REG.exe QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv /v Start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment