Friday, July 10, 2015

Shutdown or Restart any PC in the network!!!

There are two ways:
1.Using the Windows interface:


  • Open Command Prompt.
  • Type shutdown /i to display the Remote Shutdown dialog box (Shutdown.exe).
  • Under Computers, click Add to enter computer names, or click Browse to open the Find Computers dialog box.
  • Under What do you want these computers to do, click Restart or Shut down.
  • Select the appropriate reason for the restart or shutdown from the list.
  • Open Command Prompt.
  • Type shutdown /[r|s] /m \\ComputerName /c "Comment" /d [u|p] <xx>:<yy> and then press ENTER.
    ValueDescription
    /rRestarts the remote computer.
    /sShuts down the remote computer.
    /m \\ ComputerName
    Specifies the destination computer.
    /c " Comment "Enables you to comment in detail about the reason for the shutdown. You can use a maximum of 511 characters. Comments must be enclosed in quotation marks.
    /d [u|p] xx : yyLists the reason for the system restart or shutdown, where xx specifies a major reason number from 0 through 255, and yy specifies a minor reason number from 0 through 65,535.
    /forceForces the computer to shut down if other users are logged in. If this is not used and other users are logged in to the remote computer, the computer will not shut down or restart.
    ImportantImportant:
    If you force the computer to shut down or restart, logged in users will not have the opportunity to save their work.
    /t xxxSets the time-out period before the system shuts down or restarts to xxx seconds. The valid range is 0-600, with a default of 30. Using the /t flag implies the /force option.
    Note:For more detailed information about the shutdown command and additional options, type shutdown /? at the command prompt.
 
Note: 
If a comment is required, the OK button will not be available until you type at least one character in the text box.

2. Using the Command Line:

No comments:

Post a Comment