Usage: shutdown [/i/l/s/r/g/a/p/h/e] [f]
[/M computer] [/t XXX] [/d [P u:]xx:yy [/C ' comment]]]
Parameters
There are no parameters to display Help. This with the type/? is the same.
/? Display Help. This is the same as not typing any options.
/I displays a graphical user interface (GUI).
This must be the first option.
/L logoff. This cannot be used with the/m or/d option.
/s shuts down the computer.
/R shut down and restart the computer.
/g shut down and restart the computer. After the system restarts,
Restart all registered applications.
/a abort system shutdown.
This can only be used during a timeout period.
/p shut down the local computer, no timeout or warning.
Can be used with the/d and/F options.
/h Hibernate the local computer.
Can be used with the/F option.
/e The reason for the computer to shut down unexpectedly.
/m computer specifies the destination computer.
/t XXX the timeout before the shutdown is xxx seconds.
The valid range is 0-315360000 (10), and the default value is 30.
If the timeout time is greater than 0, the implied/F
Parameters.
/C "comment" a comment that causes the restart or shutdown.
A maximum of 512 characters is allowed.
/F forces the running application to close without the foreground warning the user.
When you specify a value greater than 0 for the/t parameter,
The/f parameter is implied.
/d [P U:]XX:YY provides a reason for a reboot or shutdown.
P indicates that the reboot or shutdown is planned.
U indicates that the reason is defined by the user.
If neither p nor U is specified, it is an unplanned reboot or shutdown. XX is the primary cause number (a positive integer less than 256).
YY is a secondary cause number (a positive integer less than 65536).
Reason
Reason on this computer:
(E = expected U = Unexpected P = plan, C = Custom)
Category Primary Secondary title
U 0 0 Others (unplanned)
E 0 0 Others (unplanned)
E P 0 0 other (planned)
U 0 5 Other faults: System not responding
E 1 1 Hardware: maintenance (unplanned)
E P 1 1 Hardware: maintenance (planned)
E 1 2 Hardware: Installation (unplanned)
E P 1 2 hardware: installation (planned)
E 2 2 Operating system: Recovery (planned)
E P 2 2 operating system: Recovery (planned)
P 2 3 Operating system: Upgrades (planned)
E 2 4 Operating system: reconfiguration (Unplanned)
E P 2 4 operating system: reconfiguration (planned)
P 2 16 Operating system: Service Pack (planned)
2 17 Operating system: Hot patching (unplanned)
P 2 17 Operating system: Hot patching (planned)
2 18 Operating system: Security patching (unplanned)
P 2 18 Operating system: Security patching (planned)
E 4 1 Applications: maintenance (unplanned)
E P 4 1 Applications: maintenance (planned)
E P 4 2 applications: installation (planned)
E 4 5 Applications: no response
E 4 6 Applications: unstable
U 5 15 system failure: Stop error
U 5 19
E 5 19
E P 5 19
E 5 20 Network connection lost (unplanned)
U 6 11 Power failure: Wire is unplugged
U 6 12 Power failure: Environment
P 7 0 Legacy API shutdown
Note : More attention to the computer Tutorials section, triple Computer office group: 189034526 welcome you to join