Sometime ago I was on the prawl for a way to reboot a Windows server of mine automatically.  I had to google for a while, but I couldn’t find a single page with clear instructions on how this is done.   In fact, there seems to be multiple ways of rebooting Windows, which just added to the complexity.  If you are on the same boat as I was, then here’s what you need to do to ensure that your sever reboots automatically at the time that you want.

Go to Control Panel > Scheduled Tasks and create a new task.  A window will pop up asking you to choose a program to run.  Click on Browse and double click on the following file:

C:\WINDOWS\system32\shutdown.exe

Click Next and in the next window you will give this task a name and choose a schedule for the task.  Once you are done setting up the schedule, the next window will ask you for a user under which the program should run.  Make sure that you give the name/password of a user with local admin privileges or a domain admin user.

In the next window, choose the option to open advanced properties of the task.  Once the advanced options window is open, change the contents of the Run: box from this:

C:\WINDOWS\system32\shutdown.exe

To this:

C:\WINDOWS\system32\shutdown.exe -r

The -r option tells shutdown.exe to reboot instead of shut down the computer.

There are a few extra (but optional) settings under the Settings tab, so take a look and change accordingly.  Once done, click on OK and you are all set.  Good luck!

Note:  Just like with everything-computers, you should test this a couple of times to make sure that it works.

Advertisements