Saturday, July 9, 2016

Remote Restarting a Domain PC

Introduce

If you're like me and have a couple of troublesome PCs on your network that need a quick "kick" every once in a while, here's a couple of quick ways to remote reboot them.

NOTE: You must have administrative access over the remote system.

There are 2 ways to do this:
1) Quick command line.
2) Small Batch script.




Steps (2 total)
1
Quick Command Line
Open a Command Prompt
1) Click START and RUN. Type "cmd" in the dialog box and hit OK.
2) Type "shutdown -r -m \\REMOTE_SYSTEM -t 00"
The "-r" reboots, "-m" is the remote system (needs prefix: \\), and "-t 00" is the amount of time to wait before restarting.
2
Small Batch Script
Now in my case, I have a pair of telnet servers that freak out (technical term) about 18-24 hours. To my band-aid for the problem is a script controlled by Scheduled Tasks.
1) Open Notepad and insert the following:
shutdown -r -m \\CRAZYBOX1 -t 00
shutdown -r -m \\CRAZYBOX2 -t 00
2) save it and run it as needed or set it up as a Scheduled Task.

No comments:

Post a Comment