Remotely turning on or rebooting a frozen computer

58

30

I use a remote desktop program (usually Microsoft's Remote Desktop) to connect to a Windows machine everyday. The remote computer has a fixed IP address, and if the computer is on and responsive, I can access it and even reboot the computer remotely if necessary.

Unfortunately, if the remote computer freezes (for example, if it gets a blue screen), as far as I know, I can't use a remote desktop solution to restart it. Similarly, if my computer is off, I can't use remote desktop to boot it.

I know that one solution is to ask somebody who is physically near the computer to press the reboot or power on button, but I am opening this thread because I am interested in solutions that do not require the physical presence of people to turn on or reboot a remote frozen computer.

Is this possible? If so, what are my options?

Amelio Vazquez-Reina

Posted 2011-08-06T16:18:51.673

Reputation: 5 686

by the way, it is impossible to turn on a computer without pressing the power button; this is due to well, turning the computer off. A computer can only accept data over the network if it is turned on – Nate Koppenhaver – 2011-08-06T18:05:28.553

7

Nate, true, but you can still wake it from sleep with Wake-on-lan or Wake-on-modem. http://en.wikipedia.org/wiki/Wake-on-LAN

– RJFalconer – 2011-08-06T22:10:47.427

6@Nate Koppenhaver your terminology is a bit wrong 'cos I think people often call that on/off switch on the front, a power button. Though one could also call the mains switch a power button. The correct term for what you refer to, would be the switch at the wall, at the mains, or the mains switch. Obviously nobody is stupid enough to think that a computer not plugged in / not getting any electricity from the wall, is going to turn on. – barlop – 2011-08-06T22:11:34.150

@barlop depending on the computer type, the switch on the front and the switch that totally cuts power can be the same thing (as is on some of my computers). 'power button' could refer to either, but when a computer is completely shut down (as opposed to 'sleeping'), the CPU is not recieving any power – Nate Koppenhaver – 2011-08-07T01:34:22.870

5@Nate Koppenhaver No, computers for years and years like 13+ years get power even when the computer is off, not sleeping. OFF. One of the power supply's wires is called 5VSB it feeds 5V in always. Try plugging a Ps2 keyboard into a ps2 socket and lights will flash. or a usb torch. wake on lan is in the BIOS and turns it on from nothing like you hit the power switch on the front. – barlop – 2011-08-07T01:50:09.867

2@Nate Koppenhaver ATX PSUs have all had 5VSB(the purple wire). And came out in 1995. So for your entire life they've been out! You have to go back to AT PSUs, before you were born, to find otherwise! They had a cord with a power button on the end, and a socket so the monitor plugged into the computer for power. I don't think computers even turned off with a command, you had to push the button, "It's now safe to turn off your computer"! and the monitor turned off with it . I don't know what you mean about different computer types power switch. – barlop – 2011-08-07T02:01:51.910

@Nate Koppenhaver Maybe you mean the power button can be set in the BIOS to go into a kind of sleep mode or something.. I haven't experimented with that much so could be wrong.. but I suspect 5VSB still goes through to the computer including ports ps2 and usb. BTW sometimes BIOS or jumpers can stop it going to a port though I think it still runs through – barlop – 2011-08-07T02:07:23.010

IDK really about newer computers but my Win95 box has the power button directly connected to the AC plug, which cuts out the power supply completely. This is probably an anomaly though, from what you're saying – Nate Koppenhaver – 2011-08-07T02:11:58.297

@Nate No, that was typical of computers back in that era. That's why they used to have the "It is now safe to turn off this computer" screen when you shut down. But by Windows 98's inception, from my experience, most computers always were being fed electricity, and these days, it is more rare to see a computer set up the way your old Win 95 box is designed. – Ben Richards – 2011-08-07T03:08:39.947

Answers

63

Server-grade computers by most major manufacturers have provided these types of management capabilities for many years. Watchdog timers in the BIOS, COM-based Telnet console redirect, IP based COM, remote KVM, etc.

For a desktop-grade computer you have a few options:

1) Replace your system with one that has these types of management features (out-of-band management).

Intel offers their AMT (Advanced Management Technologies) on the desktop as well, which when adhering to the certain requirement is branded as vPro. (Basically a vPro-compatible board and CPU).

AMD has DASH; with similar requirements I'm sure. I've never used it, and haven't seen any 3rd party support for it.

I prefer Intel's AMT personally. All versions (that are 'vPro') allow shutdown, power-on, reset (hard), as well as a textual BIOS and boot view. The newest versions include a VNC-based "KVM" that allows you interact with the boot process as well as the OS, so it can be used to diagnose boot problems (BIOS, POST, Bluescreens, etc.) as well as end-user and OS support.

2) Get a remote-controlled power strip:

As echoback mentioned, there's products by DLI (Digital Loggers Inc.): Web Power Switch

I looked into this, and it was too expensive for small-time use. Perhaps the price has come down though. It was feature rich, but I've never actually used it.

Another option is Technology On Demand's recent iRemoteReset product: iRemoteReset

It is aimed mainly for auto-rebooting a router/modem combo (we use them mainly for that), but it shouldn't have a problem dealing with a desktop computer as a load. You can hit it by HTTP and reset the sockets manually (individually), as well as have it auto-reset due to lack of Internet connectivity, schedules and such.

3) Build an Interent-enabled robotic arm.

Robotic Arm

:)

Ƭᴇcʜιᴇ007

Posted 2011-08-06T16:18:51.673

Reputation: 103 763

19

Don't forget ITAPPMONROBOT: http://thedailywtf.com/Articles/ITAPPMONROBOT.aspx

– Fake Name – 2011-08-07T05:10:26.617

3If I happened to be walking past a computer as it was being turned on by a robotic arm, I think I'd mistake it for Skynet. – Maxpm – 2011-08-07T20:01:40.710

2+1 for a great answer, and because the suggestion about creating a robotic arm made me laugh (plus it's also a valid solution because it really could work). – Randolf Richardson – 2011-08-14T02:03:15.627

For the solution 3 - what happen if the robotic arms is damaged or not working? – Larry Morries – 2011-09-26T01:04:57.093

20

There's an option in sysdm.cpl -> Advanced tab -> Startup and Recovery section (settings) -> called "Automatically restart" that will automatically restart the machine upon a blue screen.

Machines that depend on remote access for configuration/support need to have this enabled. You can then check eventvwr.msc or use a utility like NirSoft's BlueScreenView to later determine the STOP code and find why it crashed.

There are many types of freezes. A "hard freeze" where even the mouse stops working has a high percentage of defective hardware as the cause and needs to be physically looked at when that occurs. I've had users say their systems are frozen, but the system is just "stuck" at some point and they can still move the mouse. I've been able to use Sysinternal's PsExec sometimes to get a remote command prompt and issue a shutdown -r -t -0 command which reboots it.

At my place of work, we are a Dell shop. A lot of newer "high-end" Dell computers (T5400 and T5500 specifically) have a feature called AMT (that we don't use for some reason...). Supposedly it is a component that lets you remote reboot (even if the system is hung or powered off) and access the BIOS remotely. I don't know if you can get something with similar capability on a PCI card. I'm sure other manufacturers have a similar feature in their higher-end workstations and something like this is likely what you want.

LawrenceC

Posted 2011-08-06T16:18:51.673

Reputation: 63 487

1HP servers have a separate system within them called the Integrated Lights Out that has it's own power supply and everything and that polls specific system services at regular intervals. If certain conditions are not met (services don't respond in allocated time frame) the server is rebooted. It's a simple and very effective tool. I've often wondered how difficult it would be to integrate such a system into a desktop or home server system. – music2myear – 2011-08-06T19:01:55.793

"Machines that depend on remote access for configuration/support need to have this enabled." And it's useful for servers. For a techie not needing that would be better off with the crash than a crash and automatic restart. – barlop – 2011-08-06T22:14:40.763

1

@music2myear Many Intel machines already come with similar technology. See http://en.wikipedia.org/wiki/Intel_Active_Management_Technology for more info.

– Kibbee – 2011-08-07T01:51:27.887

7

I haven't found a way to reboot a computer that is hung up besides a remote power switch device. I use this one ip-p3 and it supports rebooting over the LAN or telephone. It's $200 though.

If you need something a little simpler, you could check this one out this. It's only $100, but the features of the IP-P3 are a lot better.

skub

Posted 2011-08-06T16:18:51.673

Reputation: 2 716

6

Another option can be using a virtual machine. It might take some time to move your server to the a virtual machine but it is free anyway. (VMWare is very nice for this and is free.)

Once you manage to migrate your server, you can install remote desktop server to virtual machine and a text-based (ssh-like) server to the real machine. I don't really know it VMWare has support for console commands, but I bet they have. So, you will use the same desktop software and you will connect directly to the virtual machines, your using habits wouldn't change and in case of system failure, you can easily restart, reboot or even reinstall windows to the machine.

It also provides a wall of security as virtual servers cannot access the data above as long as you don't give permission explicitly.

But also, if the windows machine is used on regular basis on local(w/o remote) using a virtual machine can be, disturbing.

-----edit----
Another budget option which solves the hardware failures as well. You can buy a 2nd hand cheap phone which has a vibration motor. Dissamble the phone and remove the vibration motor, throw it away, open your mainboard connect the reset pins to the remaining vibration pins on the phone by a relay contact. (requires soldering)

So when you call the phone, it will try to vibrate and eventually activate the relay which will hard reset the computer.

There a chance that you can break the cell phone completely while trying to dissamble and solder it, but so long as you use relays correctly, it is nearly impossible to do damage the mainboard.

Umur Kontacı

Posted 2011-08-06T16:18:51.673

Reputation: 363

2This will not help if there is a hardware problem. – yakatz – 2011-08-07T02:39:40.980

True. But we should know our limits, hardware failures are not much common and OP claimed that he can call someone closer to computer to force a restart. Hardware-based solutions are, kind of, expensive. And I still think this is a nice workaround which is completely free. – Umur Kontacı – 2011-08-07T03:33:13.877

It now helps if there is a hardware problem as well =) – Umur Kontacı – 2011-08-07T12:41:06.847

4

Another option, though not exactly what you're asking for, is a "watchdog timer". This is an add-in piece of hardware that reboots the system if the timer is not reset in a given interval of time. (The reset is performed from a loop in a software module that continually checks system health.)

A few years back when I checked there were a number of different types of these being made, though I haven't checked recently.

Daniel R Hicks

Posted 2011-08-06T16:18:51.673

Reputation: 5 783

3

In the case of Windows Remote Desktop Connection (RDC), which you appear to use, assuming it's not the blue-screen-of-death and just a frozen program causing RDC to hang, which is typically the case, I highly recommend PsTools. PsTools is free at Windows Sysinternals, the location of Mark Russinovich's developer tools for Windows. It's like using telnet in Linux, which you could also use in Windows for this by installing/enabling a telnet client locally and remotely. The nice thing about PsTools is that it requires no remote software installations.

After downloading PsTools and unzipping the executables into a folder, open a Windows Command Prompt and navigate to that folder. Using PsExec from the Command Prompt, execute the following command using the parameters that you normally use for Remote Desktop Connection (if you use VPN, you must login to that first to use the internal network syntax shown here, otherwise replace \\remotecomputername with the remote Windows computer's IP address):

psexec \\remotecomputername -u username -p password cmd

This will log you onto your remote Windows machine at the Command Prompt. You can then execute the following command, as if you were sitting at the computer:

shutdown -r -t 1

You can optionally add -f to the command to force the restart. To watch the whole shutdown and restart operation, before issuing that command, open another local Command Prompt window and ping the remote computer continuously for 99 seconds:

ping -t99 \\remotecomputername

If it is a properly frozen blue-screen-of-death situation, I'd use a networked AC power switch, power over LAN or auto-restart upon shutdown in the BIOS settings on the remote computer, and a networked RaspberryPi2 in an industrial-grade metal case installed near the power switch. That way, it should be trivial to issue commands to the RasPi2 over telnet to control the physical power to the remote computer for ~$150. You can obviously do other many interesting things by having a RasPi2 installed locally too, such as issue a shutdown command to the remote computer on weekends or at night or if there hasn't been any activity in the room for an hour, using a light sensor, range sensor, or the RasPiCam.

The original short version of this solution is posted here.

Adam Erickson

Posted 2011-08-06T16:18:51.673

Reputation: 147

3

They are not cheap, but many companies offer remote power switches which provide a web interface to toggle power to a given outlet. These are typically used in data centers and server rooms to simplify maintenance, so if you can find a place nearby that is getting rid of equipment, you might be able to work something out for considerably less.

wersimmon

Posted 2011-08-06T16:18:51.673

Reputation: 932

2

Check if your motherboard have watchdog timer. If it does (many do) then just install and configure proper software. Motherboard will reboot your computer if OS hangs.

Michał Šrajer

Posted 2011-08-06T16:18:51.673

Reputation: 2 495

2

Kind of an odd way to do it, but I have a home-made watchdog timer.

My Linux server instructs a PLC to perform various automation tasks in my house, but unfortunately freezes from time to time. I set my Cron scheduler to send a command to the PLC to tell it that it's still alive. If the PLC doesn't get the keep-alive command within its preset time, it clicks a relay that I wired up to the reset pins on my server.

Done.

Quite expensive, but it could be done cheaper. Get yourself an on-delay timer, and set it to say, a few minutes. Have your computer apply power to it (via printer port, breakout board) to keep the delay at a high value. If there is no power from the printer port, and the timer elapses, it resets the system.

Done.

brad

Posted 2011-08-06T16:18:51.673

Reputation: 21

Whats a "PLC"? Also, answers generally shouldn't have a "signature" or tagline. – Heptite – 2014-04-22T02:16:14.400

@Heptite You can always suggest an edit (i.e. improve grammar, remove signature, etc). If you don't have the rep, other users can vote yay or nay to your edits, but makes our jobs easier here. – Canadian Luke – 2014-04-22T02:30:24.107

1

Since you say your IP remains the same and is known to you, you can use this from the command prompt of your PC:

shutdown -r -m \\IP-Address

For example:

shutdown -r -m \\14.233.90.157

The only limitation is that the remote machine should have been last logged in with the same user account as the user from whose PC you are running this command.

Sridhar V

Posted 2011-08-06T16:18:51.673

Reputation: 11

0

I know this is an old post, and I hate to resurrect. But there is a thing called the Windows Emergency Management Services. It requires a USB connection to another computer on the network. (I've been thinking about trying to do this over a USB-server/network extender device.)

It is limited in its authentication requirements however, so I would recommend if you have two servers, or a server and a management computer, that you could have these systems monitor each other.

https://technet.microsoft.com/en-us/library/cc736319(v=ws.10).aspx

It isn't as robust as HP's iLO or Dell's iDRAC, but it is both cheaper, and more featured than an IP controlled power bar.

Of course, your mileage shoehorning this onto newer server OSes may vary.

Updated link to newer system set-up information. https://msdn.microsoft.com/en-ca/library/windows/hardware/ff542193(v=vs.85).aspx

brokensyntax

Posted 2011-08-06T16:18:51.673

Reputation: 11

0

I have a similar issue and have been thinking of trying a wifi light switch wired to a relay so when closed it "pushes" the reset button. This to me looks like the cheapest option with some wifi switches at or below $30. Sadly I am still travelling so I am still using my brother as the reset switch. Just thought I'd throw the idea out there, even if this is an old thread.

EngiNerd

Posted 2011-08-06T16:18:51.673

Reputation: 11

0

  1. using RealVNC and sending ctrl-Alt-Del may solve the issue if you can connect remotely (this is possible even if the PC is frozen - RealVNC can comment on this)
  2. using another remote PC on the same location and using RDP or pstools to reboot the remote PC
  3. in my case, i am using all the above including Intel AMT and I created a small C# program to restart the pc forcefully (this is to make sure that i don't turn off the pc but simply re-starting it) when the computer is awake. Just to make sure that PC will be fresh again.

Shinn_33

Posted 2011-08-06T16:18:51.673

Reputation: 1

0

easy no watchdog? why buy expensive eth-switches ??? you have an analogue phone line near the computer?

just give this line a number only you use, (perfect if you have a i.e. FritzBox near the machien with a free analogue line) attach a relais (with rect. and cap.) and connect the relais-close to the reset-switch, in parallel to the existing reset switch. Now it the machine hangs, just call that number, let it ring one time, the machine gets its hit in the neck and reboots.

just wait for finish all this scandisk crap till its finished booting and continue your work.

higf

Posted 2011-08-06T16:18:51.673

Reputation: 1

1can you elaborate more on this - like an illustration - what if there is no phone line? – Prasanna – 2015-04-05T13:17:58.407

@Prasanna “what if there is no phone line?” strikes me as a cheap shot.  If there is no phone line, install one.  If analog phone service isn’t available in the area, then this answer won’t work for this OP.  No big deal.  It could still be useful to other people with the same problem.  … … … … … … … … … … … …  P.S. Congratulations on reaching 1000 reputation points. – G-Man Says 'Reinstate Monica' – 2015-06-16T20:14:50.717

-1

We had a Qwest Actiontec PK5000 hang up while we were out of town for an extended month trip. We had a security camera running through the modem/router and of course we lost usage of the security camera as soon as the modem/router hung. A friend suggested the cheapest route would be to install a timer between the modem/router and AC power supply and have it be powered off each day for 5 mins. Of couse during a non-critical time frame.

Mainlander

Posted 2011-08-06T16:18:51.673

Reputation: 11

How is any of that have to do with the question? If you can't post a comment, in the comment section, DO NOT POST A COMMENT. I have literally said, stop posting comments as answers, like 50 times today. – Ramhound – 2016-03-30T02:14:27.687

Like Ramhound said, this has NO relevance at all to the question. Please read the question again and understand how this does not answer it. – Eric F – 2016-04-01T17:47:28.377