Skip to content

Instantly share code, notes, and snippets.

View IT-Specialist-IN's full-sized avatar

Praveen IT-Specialist-IN

View GitHub Profile
@mhornsby
mhornsby / disable-windows-update.ps1
Created October 20, 2018 06:31 — forked from mikebranstein/disable-windows-update.ps1
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
@mikebranstein
mikebranstein / disable-windows-update.ps1
Created September 1, 2016 20:26
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