shutdown.exe from the resource kit
shutdown [\\computername] [/l] [/a] [/r] [/t:xx] ["msg"] [/y] [/c] [/?]
Parameters
\\computername
Specifies the remote computer to shut down. If no name is given but the tool
is started with any of the other options, the local computer name will be
used.
/l
Specifies a local shutdown.
/a
Quits a system shutdown. This can only be done during the timeout period. If
this switch is used, all others are ignored.
/r
Restart the computer specifed after shutdown.
/t:xx
Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
"msg"
Specifies an additional message with a maximum of 127 characters, surrounded
by quotation marks.
/y
Answers questions with "yes".
/c
Forces running applications to close.
Caution
If you use the /c parameter, Windows 2000 ignores the application's option
to save data that might have changed. You will see no File Save dialog box,
because Windows 2000 will force the application to close. This will result
in a loss of all data not previously saved.
/? (or shutdown without parameters)
display help.
Examples
Shutdown and reboot a remote computer.
shutdown \\IMAREMOTECOMPUTER /R
Shutdown a local computer, closing all applications in 5 seconds.
shutdown /L /C /T:5
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
http://www.microsoft.com/protect.
:
| Is there a .exe that will do a shutdown and one that will
| do a start or restart for windows 2000 Pro