Friday 17 August 2012

How To Use Shutdown Switches:


List Of Shutdown Command Switches

No SwitchesDisplay information about the shutdown command, same as typing “-?”
-iDisplay a GUI. It must be the first switch
-lLog off the user (This cannot be used on a remote machine: “-m” switch)
-sShutdown the computer
-rRestart the computer
-aCancels a system shutdown already in progress
-fForces running applications to close without warning
-m \\computernameInstruct a remote computer to shutdown (can be used with the restart & abort switches)
-t xxSet a given time for shutdown, in seconds
-c “comment”Shutdown comment (maximum of 127 characters)
-d [u] [p]:xx:yyThe reason code for the shutdown:
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)

No comments: