shutdown | new in WS2003 |
a remote computer.
Syntax
shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f] [/m \\ComputerName]
[/t seconds] [/d [p:] XX:YY [/c "Comment"]]
Options
- /i
Displays the Remote Shutdown Dialog box (if included, all other
switches following it are ignored).- /l
Logs off the current user immediately (can't be used
with /m or /t).- /s
Shuts the computer down.- /r
Restarts the computer.- /a
Cancels a shutdown if done during the timeout period.- /p
Shuts down the local computer immediately with no warning (requires
/d). This switch doesn't work
with remote computers.- /h
Sends local computer into hibernation (if supported). Requires
/f.- /e
Lets you document the reason for the unexpected shutdown.- /f
Forces running applications to close without warning users (may
result in data loss).- /m \\ComputerName
Specifies the target computer (can't use with
/l).- /t seconds
Specifies a delay in seconds (from 0 to 600) before shutdown (a
warning is displayed on the local console). If omitted, delay
defaults to 30 seconds.- /d [p:]XX:YY
Specifies a reason for shutdown, where:- p:
The shutdown was planned- XX
Major reason number (0-255)- YY
Minor reason number (0-65,535)
- /c "Comment"
Specifies details concerning reason for shutdown (when used with
/d). Maximum of 127 characters.
Examples
Display the remote shutdown dialog box:
shutdown /i
Using this dialog box, you can specify:
- Which computer(s) to shut down or restart.
- Whether to perform a shutdown, restart, or annotated unexpected
shutdown of the specified computers. - Whether to warn users of the impending action and how long to display
the warning to give users time to save their work. - Whether the shutdown is planned or unplanned. If planned, the type of
shutdown and an optional comment can be specified.
Restart the remote computer 172.16.11.230 in 15 seconds, forcing the
restart if users have open applications, displaying the reason
"We're under attack,
duck!":
shutdown /r /t 15 /f /m \\172.16.11.230 /c "We're under attack, duck!"
A dialog box appears on the remote computer warning users of the
impending shutdown.
See Also
Logon