Syntax:
Shutdown.exe [logoff_option] [/m \\computername ] [option]
Shutdown.exe [logoff_option] [/m \\computername ] [option]
logoff option:
- /i
- Display the GUI (must be the first option)
- /l
- Log Off. This cannot be used with /m or /d option
- /s
- Shutdown
- /r
- Shutdown and Restart
- /a
- Abort a system shutdown (only during the time-out period)
- /p
- Turn off the local computer with no time-out or warning (only with /d)
- /h
- Hibernate the local computer (only with /f)
- /e
- Document the reason for an unexpected shutdown of a computer
Options:
- /m \\computername
- A remote computer to shutdown
- /t:(0-600)
- Time until system shuts down in seconds. 0-600 (default=30)
- /c “Message”
- An optional shutdown message with a max of 127 characters
- /f
- Force all running applications to close. This will result in lost of unsaved data
- /d u:xx:yy
- List a USER reason code for the shutdown
- /d P:xx:yy
- List a PLANNED reason code for the shutdown
0 comments:
Post a Comment