View Full Version : Auto Restart
mracornish
01-04-2002, 03:01 PM
I wonder if any can help me i need write a command/bat file/line to make one of my servers restart at 12am.
or does any know of a program i can down load
hutzmoose
01-04-2002, 08:39 PM
in the windows NT Resource Kit there is a shutdown command with various switches. You can't specify a time but you can specify for it to happen in x number of seconds. The command would look something like this:
shutdown /l /c /y /r /t:4320
or
shutdown //computername /c /y /r /t:4320
the switches are
/l = Local Machine
//computername = Name of remote computer to shutdown
/c = Close all Applications
/y = Answer any/all questions Yes
/r = restart machine after shutdown
/t: = Time in seconds from when you hit enter until the machine shuts down 4320 = 12 hours
hope this helps
Mike
Fumbling through the registy since 1998 ;o)
POBrien
01-04-2002, 11:19 PM
and if you're running NT you can use the AT command (as your timer) with the shutdown program.
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.