Best bet is to use shutdown.exe (from the resource kit) and the AT command.
To have the machine shut down every weekday at 10:00PM, you would type this
at the command prompt:
AT 10:00PM /every: M,T,W,TH,F c:\Winnt\shutdown.exe /L /R /T:10 /C /Y
This command tells the machine to run shutdown.exe at 10PM every Monday thru
Friday. Shutdown.exe then knows (by the switches) to (/L) shut down the
local machine, and not a remote one, (/R) reboot instead of powering off,
(/T:10) show a warning box for 10 seconds before starting the shutdown
sequence, (/C) force all running apps and services to kill, and (/Y)
answering yes to the "are you sure?" prompt (this switch is unnecessary in
W2K, but is in NT4). You can initiate remote shutdowns by removing the /L
switch after shutdown.exe and replacing it with a \\%computername%
parameter, replacing %computername% with the appropriate server or
workstation host name. As always, YMMV, but this should work no problem.
-----Original Message-----
From: Matthew Oppermann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:28 PM
To: NT System Admin Issues
Subject: Scheduling NT Server Reboots
I have been looking around, hoping to find a way to do automatic reboots to
an NT server. I heard there was a reboot program on the NT Resource Kit,
and after purchasing it found out that the particular program has to be
manually run and activated, but it does reboot any manchine on the network.
How can I force the reboot of a server at say 10:00 pm every weekday night?
Matthew Oppermann
Systems Admin
Symbiotics, Inc.
Want to unsub? Do that here:
http://www.w2knews.com/rd/rd.cfm?id=unsub
Need a good FAQ? Try this one first:
http://www.ultratech-llc.com/KB/
Want to unsub? Do that here:
http://www.w2knews.com/rd/rd.cfm?id=unsub
Need a good FAQ? Try this one first:
http://www.ultratech-llc.com/KB/