Pages

Thursday, December 3, 2009

Windows Server Command Line Restart

Shutdown.exe
Parameters:
/?Displays the Help listing
/iDisplays the graphical user interface (GUI); it must be the first option
/lLogs off the current user; it cannot be used with the /d or /m options
/sShuts down the computer
/rShuts down and restarts the computer
/gShuts down and restarts the computer and then restarts any registered applications
/aAborts system Shutdown
/pTurns off the local computer with no timeout or warning
/hHibernates the local machine
/eDocuments the reason for shutting down the computer
/mSpecifies the target computer; it is used with \\computername
/t xxxWhere xxx is the number of seconds before Shutdown
/c “comment”Where “comment” is the reason for the Shutdown or restart
/fForces running applications to close without warning users
/d [p|u:]xx:yyProvides the reason for the Shutdown action: p = planned; u= unplanned; xx supplies the major reason code; yy = supplies the minor reason code

No comments:

Post a Comment