Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set a Rebooting Schedule

Status
Not open for further replies.

Mike555

Technical User
Joined
Feb 21, 2003
Messages
1,200
Location
US
Is it possible to schedule automatic reboots in Windows Server 2003? I'm looking for a way to have my servers automatically reboot themselves every other night. Thanks.

--
Regards,
Mike
 
Create a .cmd file called reboot.cmd

<---Begin of file
@shutdown /r /t 2 /f /c "Message recorded in Event"
<---End of file

place file into the \winnt or \windows directory
then from Control Panel->Scheduled Tasks

Setup a schedule to execute the batch file

the /r means shutdown and Restart
the /t # means how long to wait in seconds
the /f means force any running apps to close
the /c "*%#$%" means the comment to place in Event Log

not including the /c will cause a dialog to appere after restart waiting for you to tell the server why the system rebooted. You can turn this off however placing the comment in the event log is a good idea.

Steve Bowman
steve.bowman@ultraex.com

 
Create a .cmd file called reboot.cmd

<---Begin of file
@shutdown /r /t 2 /f /c "Message recorded in Event"
<---End of file

place file into the \winnt or \windows directory
then from Control Panel->Scheduled Tasks

Setup a schedule to execute the batch file

the /r means shutdown and Restart
the /t # means how long to wait in seconds
the /f means force any running apps to close
the /c "*%#$%" means the comment to place in Event Log

not including the /c will cause a dialog to appere after restart waiting for you to tell the server why the system rebooted. You can turn this off however placing the comment in the event log is a good idea.

Steve Bowman
steve.bowman@ultraex.com

 
Thanks Steveb7, I'll give this a test!

--
Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top