shutdown in Window Server 2008

In this article I am going to explain about shutdown command in Windows Server 2008 operating system and also explain it's related syntax.
  • 2022

shutdown command in window server 2008

shutdown command is a command-line tool that is built in Windows Server 2008. this command is available in Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Vista. shutdown command is used to enable you to shut down or restart local or remote computers one at a time. Basic syntax for using Cmd command given below.

Syntax

shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f] [/m \\<ComputerName>] [/t <XXX>] [/d [p|u:]<XX>:<YY> [/c "comment"]]

Parameter

Parameter Description
/i It is display the remote shutdown dialog box. The /i option must be the first parameter following the command. If /i is specified, all other options are ignored.
/l  It's log off the current user immediately, with no time-out period. You cannot use /l with /m or /t.
/s This parameter is shut down the computer.
/r This parameter is restart the computer after shutdown.
/a This parameter is abort a system shutdown. Effective only during the timeout period. To use /a, you must also use the /m option.
/p This parameter is turn off the local computer only (not a remote computer)—with no time-out period or warning. You can use /p only with /d or /f. If your computer does not support power-off functionality, it will shut down when you use /p, but the power to the computer will remain on.
/h It is put the local computer into hibernation, if hibernation is enabled. You can use /h only with /f.
/e It is enable you to document the reason for the unexpected shutdown on the target computer.
/f It is force running applications to close without warning users.
/m \\<ComputerName> It is specify for the target computer. Cannot be used with the /l option.
/t <XXX> This parameter is set the time-out period or delay to XXX seconds before a restart or shutdown. This causes a warning to display on the local console. You can specify 0-600 seconds. If you do not use /t, the time-out period is 30 seconds by default.
/d [p|u:]<XX>:<YY>

It is the list the reason for the system restart or shutdown. The following are the parameter values:

p  Indicates that the restart or shutdown is planned.

u   Indicates that the reason is user defined.

XX   Specifies the major reason number and positive integer less than 256.

YY   Specifies the minor reason number and positive integer less than 65536.

/c "<Comment>" It is enable you to comment in detail about the reason for the shutdown. You must first provide a reason by using the /d option. You must enclose comments in quotation marks. You can use a maximum of 511 characters.
/? it is used for display Help at the command prompt including a list of the major and minor reasons that are defined on your local computer.

Example

shutdown-window-server.gif

Ask Your Question 

Got a programming related question? You may want to post your question here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.