Schedule Windows server to reboot or shutdown

Yesterday, I installed an update on a Windows server that could not be rebooted during the day. To apply the update, I scheduled a reboot of the server in the evening.

To schedule a reboot or shutdown, you can use the "at" command to issue a shutdown command:
at [time] [command]
for instance:
at 18:15 shutdown -f -r -t 30
This will forcibly (-f) reboot (-f) the machine after a 30 second (-t) warning message.

This works on a standard Windows machine. You may also want to use Sysinternals' psshutdown, which is a lot more flexible. For example, psshutdown allows you to enable any logged in user to cancel the reboot - very useful for clients.

© GeekLabInfo Schedule Windows server to reboot or shutdown is a post from You are free to copy materials from, but you are required to link back to
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Geef een antwoord

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *