shutdown | new in WS2003 |
Shut down or restart the local computer or a remote computer.
shutdown [/i /l /s /r /a /p /h /e] [/f] [/m \ ComputerName ] [/t seconds ] [/d [p:] XX : YY [/c " Comment "]]
Displays the Remote Shutdown Dialog box (if included, all other switches following it are ignored).
Logs off the current user immediately (can't be used with /m or /t ).
Shuts the computer down.
Restarts the computer.
Cancels a shutdown if done during the timeout period.
Shuts down the local computer immediately with no warning (requires /d ). This switch doesn't work with remote computers.
Sends local computer into hibernation (if supported). Requires /f .
Lets you document the reason for the unexpected shutdown.
Forces running applications to close without warning users (may result in data loss).
Specifies the target computer (can't use with /l ).
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.
Specifies a reason for shutdown, where:
The shutdown was planned
Major reason number (0-255)
Minor reason number (0-65,535)
Specifies details concerning reason for shutdown (when used with /d ). Maximum of 127 characters .
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.
Logon