Schedule a Windows Server Restart
There are many ways to do this, one of them is to simply use the built in shutwn command. However, if you want to schedule a reboot more than 10 minutes in the future, it will not suffice.
We can use the PsShutdown utility for more control…
Download and extract the psshutdown.exe file to any location on your system. Here is the command I use:
psshutdown.exe -r -f -c -t 22:00 /accepteula
This will do a forced restart at 10 PM, accepting the EULA and allowing a logged in user to cancel the shutdown if needed.
Checkout other Sysinternals PsTools for more useful utilities.
*Update: Download the PsShutdown util + a small batch file here. Just extract the folder anywhere on your machine and run the batch file to schedule a restart.
| Print article | This entry was posted by Chris Burnum on November 5, 2009 at 4:16 PM, and is filed under Windows Server 2003, Windows XP. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |