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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduled reboot

Status
Not open for further replies.

VBVines

MIS
Jun 11, 1999
98
US
Can anyone give me some code to reboot a server named HR1 that I can have the windows 2000 scheduler run so I can reboot our win2k servers on a routine schedule?

Thanks aspvbwannab
 
Create a shortcut somewhere that points to C:\Windowds\system32\shutdown.exe. Then edit the target to add the parameters at the end.

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

Finally, shedule a task that points to the shortcut.
 
Do you now if this is the same one that was used for NT 4 or do you now if there is anyway to get it free? Thanks, aspvbwannab
 
I don't know if it's the same, but I would expect it to be. The parameter -r is for reboot. Shutdown would be -s. I'm pretty sure that -t is for time in seconds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top