If you have ever needed to shut down a server but it wants to install updates which you know will take longer than your service window you can use the following command to prevent the issue until you reboot.
net stop wuauserv
This will stop the Windows Update Service (at least until you reboot)
Hope this helps someone
Nice. I just hadn't thought of that.
ReplyDeleteCan also use shutdown cmd command.
ReplyDeleteshutdown /r /t 10
Will reboot the server after 10 seconds.