Shutdown


Shutdown \ windows \system32\shutdown.exe

Shutdown is used to perform a graceful shutdown of the computer from the command line, useful if you wish to automate the shutdown of the computer, or if you need to shut down and you don't have access to the Start menu. This tool can be used to shut down the computer with a Windows shortcut, from a WSH script or batch file, via Scheduled Tasks, from within Safe Mode with command prompt, or remotely using a Telnet client. Shutdown uses the following command-line parameters:

 shutdown   command   [-m \   name   ] [-t   n   ] [-c "   text   "] [-f] 

Option

Description

command

Command can be one of the following:

-i

Interactive mode; displays the Shutdown dialog.

-l

Logs off (cannot be used with -m ); may produce undesired effects, such as services unexpectedly stopping.

-s

Shuts down the computer.

-r

Restarts the computer.

-a

Aborts a timed system shutdown in progress.

-m \\ name

Shuts down remote computer name; does not work with -l .

-t n

Sets a timed countdown before the shutdown is performed. The default is 30 seconds; use 0 to shut down immediately.

-c " text "

Specifies a text message to be shown to other currently logged-on users while the countdown commences.

-f

Forces running applications to close without warning.

To perform a simple shutdown after a 30-second warning, type shutdown -s . To restart the computer without any countdown, type shutdown -r -t 0 .



Windows XP Pocket Reference
Windows XP Pocket Reference
ISBN: 0596004257
EAN: 2147483647
Year: 2001
Pages: 154
Authors: David A. Karp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net