Automatically rebooting the server

How would i go about setting up my 2003 server to reboot once a week?
dpapineauAsked:
Who is Participating?
 
Dave_DietzConnect With a Mentor Commented:
Save the following line as reboot.cmd somewhere on your machine (root of a drive or somewhere on your PATH would be good)

shutdown -r -c "scheduled reboot" -d p:1:1


Then at a command prompt type the following:

at 03:30 /every:sunday c:\reboot.cmd


This will cause your machine to reboot and restart every Sunday at 3:30AM with a reboot description of "scheduled reboot" and a reason of Hardware: Maintenance.

Feel free to change the parameters to your particular needs.

Dave Dietz
0
 
rujsCommented:
Hi,
How will this help, what is the reason for doing so?
Thanks,
rujs
0
All Courses

From novice to tech pro — start learning today.