Sunday, June 28, 2009

How To Use the Remote Shutdown Tool to Shut Down and Restart a Computer in Windows 2000

Shutdown.exe is available on the Microsoft Windows 2000 Resource Kit CD-ROM only. It is a command-line tool that you can use to shut down or to restart a local or remote computer that is running Windows 2000 or Windows NT 4.0. If you want to schedule a computer to shut down and restart at a specific time, use Shutdown.exe in combination with the at command or Task Scheduler.

Description of the Shutdown.exe Tool
Shutdown.exe uses the following syntax:
shutdown \\computername /l /a /r /t:xx "msg" /y /c
You can use the following switches with Shutdown.exe:

* \\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.
* /l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer
* /a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.
* /r: Use this switch to restart the computer instead of fully shutting it down.
* /t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.
* "msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.
* /y: Use this switch to force a "yes" answer to all queries from the computer.
* /c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.

Source: support.microsoft.com

0 comments: