Search For A Solution!

Total Pageviews

Wednesday, March 21, 2018

How to: Restart a Remote Server Using Command Prompt

Open a command prompt (as administrator) and type the below command.
Also you should have administrator permissions on the server.

shutdown /r /f /t 0 /m \\<ServerName> /c "<Description>"

Switches:

/r         Shutdown and restart the computer.

/f         Force running applications to close without forewarning users.

/t xxx     Set the time-out period before shutdown to xxx seconds.
The valid range is 0-600, with a default of 30.

/m \\computer Specify the target computer/hostname/ip.

/c "comment" Comment on the reason for the restart or shutdown.

All going well (no other problem) the system will be restarted.

Example:

C:\shutdown /r /f /t 0 /m \\192.168.1.1 /c "After Patch"

No comments:

Post a Comment