Shuts down Windows XP and optionally restarts the computer or logs off the current user.
shutdown [[-l | -s | -r | -a]] [-f] -m[\\computer]] [-t xx] [-c "msg"] [-d[u][p]:xx:yy]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
[−l] | Logs the current user off. |
[−s] | Shuts the local computer down. |
[−r] | Restarts the computer once it has been shut down. |
[−a] | Aborts the shutdown process. |
[−f] | Forces the termination of active applications. |
-m[\\computer]] | Allows for the specification of a remote computer. |
[−t xx] | Specifies the amount of time to wait before the shutdown occurs. |
[−c 'msg'] | Displays a message in the System Shutdown dialog message area. |
[−d[u][p]:xx:yy] | Lists a reason code for the shutdown (u = user code, p = planned shutdown code, xx = a major reason code with a value between 0 and 255, and yy = a minor reason code with a value of 0 to 65536). |