Created
September 1, 2016 20:26
-
-
Save mikebranstein/7e9169000a6555c195043e1755fbee7e to your computer and use it in GitHub Desktop.
Disables Windows Update with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
Very useful link :
how to start service back after disabled : sc.exe config wuauserv start=auto
If you need to see Description of command : sc.exe config start wuauserv