Scheduling your server to Automatically Reboot

How to schedule your server to automatically reboot itself at a pre-determined time
Windows Server 2003 comes with the built-in ability to schedule your server to reboot at any time of your choosing. It is quite simple to set up.
Navigate to Start -> All Programs -> Accessories -> System Tools -> Scheduled Tasks.
external image win2k3_AutoReboot_1.jpg
Click on the icon which says Add Scheduled Task.
external image win2k3_AutoReboot_2.jpg
You should now see the Add Scheduled Task Wizard. Click Next.
external image kb_schedtask_reboot_03.gif
Disregard the list of programs, and click the Browse button.
external image kb_schedtask_reboot_04.gif
By default, the browse button will bring you to the root of the C: drive. Navigate to WINDOWS -> system32 and locate the file named ‘shutdown.exe’. Highlight it, and click Open.
external image win2k3_AutoReboot_3.jpg
Enter your desired name for this task. For the purposes of this article, we will name this task ‘Auto-Reboot’. Next, choose how often you would like your server to reboot, whether it is daily, weekly, or monthly. For example, let’s select monthly. Once selected, click Next.
external image kb_schedtask_reboot_06.gif
Here, you can select the time and date of the month you would like the server to automatically reboot. For example, we will select 1:00 AM for the time. As you can see, you have many configurable options available for which day of the month you prefer. For example, we will choose the Last Thursday of the month. Once your desired options have been set, click Next.
external image kb_schedtask_reboot_07.gif
Type in the password for the user you would like this task to run under. If you are setting this task to run under your ‘ServerAdmin’ login, enter the ‘ServerAdmin’ password. Once entered, click Next.
external image kb_schedtask_reboot_08.gif
On the next screen, place a check-mark in the option for 'Open advanced properties for this task when I click Finish'. Once the check-mark is entered, click Finish.
external image kb_schedtask_reboot_09.gif
Now, we need to enter a specific command to make the server reboot rather than simply shutdown. Add the following line in the Run field after ‘shutdown.exe’, without the parentheses:
(-r -t 00)
The Run field should now look like this:
external image kb_schedtask_reboot_10.gif
You will need to enter your ‘ServerAdmin’ password to confirm the changes. Once entered, click OK.
external image kb_schedtask_reboot_11.gif
You have now set Windows to automatically reboot as the time you have specified.