net stop "windows update"
this works for a while but then the service starts again. What is restarting this service and how do I prevent it from doing so?
Stop it and disable it.
sc stop wuauserv sc config wuauserv start= disabled
You will need to open command prompt as administrator or you will get "access denied."
The space after the
start= is mandatory,
sc will complain if the space is omitted. It may be worth noting that any services, or programs, which depend upon a disabled service will themselves fail to start, or experience anomalous behavior.
Check the System event log for event ID 7036 from Service Control Manager for
wuauserv entering running state. It's likely another service has
wuauserv marked as a dependency and is starting it as needed.
I haven't figured out what is restarting wuauserv or how to prevent it from restarting, but here is an AutoHotkey script that will periodically check and sop it.
#Persistent interval = 180 ; execution interval in seconds Menu, Tray, Add ; divider line Menu, Tray, Add, Execute Now, StopService Menu, Tray, Default, Execute Now timer_param := -1000 * interval StopService: Run %comspec% /c "sc query wuauserv | find "1 STOPPED" & if errorlevel 1 sc stop wuauserv", , Hide time = %A_Now% time += %interval%, seconds FormatTime, time_string, %time%, Time Menu, Tray, Tip, Stop Windows Update Service`nNext Execution at %time_string% SetTimer, StopService, %timer_param% return