Remote shutdown w/ Windows 8.1

CaptainLaddie

dj paul pfieffer
SoSH Member
Sep 6, 2004
37,077
where the darn libs live
I know this is an odd question, but I've had trouble finding answers on the web.
 
I have a computer in another time zone that I can access via remote access.  Let's say it's online according to my software, but I can't access it visually.  But -- I can send commands to it.
 
Is there a command to send to it that no matter what will restart the machine?  Something that failing everything else will allow the machine to proceed as normally as possible?
 
I've turned off automatic repair, but just want to find out if there's an override command to reset everything if necessary.
 

Time to Mo Vaughn

RIP Dernell
SoSH Member
Mar 24, 2008
7,299
Make sure you give it a restart command and not a shutdown command or you'll have to physically access it to turn it back on.
 

swiftaw

Member
SoSH Member
Jan 31, 2009
3,444
Dernells Casket n Flagon said:
Make sure you give it a restart command and not a shutdown command or you'll have to physically access it to turn it back on.
That's the -r part of the command above.
 

Time to Mo Vaughn

RIP Dernell
SoSH Member
Mar 24, 2008
7,299
swiftaw said:
That's the -r part of the command above.
Good. It's been a while since I've done any of that remote administration and was on mobile, but have had that sinking feeling when we realized that we had done something similar and completely taken a box offline that was like two states away.
 

Max Power

thai good. you like shirt?
SoSH Member
Jul 20, 2005
8,054
Boston, MA
Running applications can stop the shutdown from happening and put the computer in a hung state. If you add the /f switch, it will force a shutdown and close out everything running, possibly losing unsaved information. The /f switch is implied if you specify a time setting greater than 0 seconds. So either
 
Shutdown now and force any applications closed: shutdown /r /f /t 0
 
or
 
Shutdown in 10 second and force any applications closed: shutdown /r /t 10