Using a Windows InterfaceTo restart or shutdown a remote computer and document the reason in the log files using the Windows interface you will need to do the following:
- Open the Command Prompt window by pressing "Windows" + "R" and type "CMD" and hit "Enter"/"OK"
- Type "shutdown /i" to display the Remote Shutdown dialog box (the Shutdown.exe file found in the Windows directory)
- Click the "Add" button to enter the associated computer names you wish to shutdown/restart or click "Browse" to open the "Find Computers" dialog box
- Under "What do you want these computers to do", click "Restart" or "Shut down" and options for warning any logged in users.
- Select an appropriate reason for the restart or shutdown from the list and enter in any details to be logged in the "Shutdown Event Tracker" section
Using the Command PromptTo restart or shut down a remote computer and document the reason using the command line
you will need to follow the process below (Win7):
- Select the "Start" button
- Click "All Programs"
- Next select "Accessories"
- Click "Command Prompt"
- Type the following into the command line:
- shutdown /[r|s] /m \\ComputerName /c "Comment" /d [u|p] <xx>:<yy>
- /r = Shutdown and restart the computer
- /s = Shutdown the computer
- /m = Specify the target computer
- /c = Comment on the reason for the restart or shutdown.(512 characters max)
- /d = [p|u:] xx:yy Provide the reason for the restart or shutdown.
- p = Indicates that the restart or shutdown is planned
- u = Indicates that the reason is user defined
- If neither p nor u is specified the restart or shutdown is unplanned
- xx is the major reason number (positive integer less than 256)
- yy is the minor reason number (positive integer less than 65536)
- System Shutdown Reason Codes