Windows XP and Windows Server 2003 support shutdown and restart of local and remote computers from the command-line. The shutdown command can be used with appropriate parameters to shutdown or restart the computer.
An example of shutting down a local system :
shutdown /s /t 120 /f /c ¨Closing for the day. Jai Sai Ram!¨
/s The systems is to be shutdown. /r is for restarting the system.
/t xxx Sets the timeout before the system is shutdown or restarted. A warning remains displayed during this time. The valid range of vaoues is from 0 to 600 seconds. The default is 30 seconds.
/c ¨Comment" Enables you to specify a reason. It must be in quotes and can have a maximum of 127 characters.
The options differ slightly for Windows XP.
The shutdown can be canceled by the /a option during the timeout period.
shutdown /a
Monday, June 16, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment