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 GeekLab.info. You are free to copy materials from GeekLab.info, but you are required to link back to http://www.geeklab.info
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Geef een reactie

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

*

code