This is pretty much a repeat of the question from social.technet.microsoft.com:
https://social.technet.microsoft.com/Forums/windows/en-US/31679156-ca8c-4cda-8965-b860267b7496/auto-shutdown-pc-after-windows-updates-completes?forum=itprovistasetup
After a quick Google search, the above link is the only link I could find which was directly related to what I am looking for. But on that page the discussion seems to have decayed into some inconclusive babble, and I thought Superuser
might be a good place to get a conclusive result (even if it is in the negative).
So is there a way I can tell Windows to shutdown the machine after it is done installing the updates? Please note that I want it to shutdown and not restart, so that my PC doesn't stay on the whole night. I thought of scheduled tasks, but am not able to come up with a good argument that I can pass to make it do what I need it to.
shutdown -s -t n
wheren
is the time in seconds that system will be delay to shutdown. As note, you can useshutdown -r -t n
where-r
indicates a restart.