How-To Geek

How to Automatically Shut Down or Restart Your PC (or Do it Remotely From Your Phone)


So, you want to head to bed… time to power down the PC and call it a night. But wait… that download hasn’t finished yet. You could stay up and wait for it to finish, but then you will miss out on sleep. You could leave it running, but that’s a waste of electricity. Or you could do is turn to Shutter, which gives you a couple of alternative options.

This is a free tool that may not look like anything special, but it has a few tricks up its sleeve that make it well worth checking out. Used at its most basic Shutter could be configured to automatically shut down your computer in an hour’s time, or however long you think it’s going to take for your download to complete.

This in itself is useful, but there’s much more the app. Grab yourself a copy from the website and get it installed.


Launch the app and prepare to be distinctly underwhelmed by its appearance – but looks can be, and in fact are, deceptive.


Click the Event drop down menu and you will find that there are a number of triggers for you to choose from. These include a simple countdown timer or an alarm-style time trigger, but there are also more interesting options such as low battery and the closing of a window or the termination of a particular process.


Depending on what you choose from this first menu, you will then have to configure additional settings. If you have opted for a timer, this involves little more than specifying how long the timer should run, but you may also choose which windows Shutter should monitor, the battery level to watch out for, or the processor activity level that should act as the trigger.

The Action menu is where you can select what should happen when your chosen trigger occurs. We are interested in using the Shutdown option for now, but restarting, hibernating, sleeping, sound muting and more are also available.


Hit the Start button and you can walk away from your machine safe in the knowledge that the shutdown or other action will happen in your absence. If you have opted for an alarm or sound muting/unmuting instead, you can use the Now button to have a dry run and ensure that it is going to work as expected.

You might well be wondering why you would want to take the time to configure Shutter to do something that could be achieved by setting up Windows’ task scheduler instead. Shutter is far more flexible than Windows’ scheduling tool in terms of the different events that can be used as triggers, and it is also able to trigger a wider range of events. But it does not end there.

We recently looked at how you can re-enable the hibernation feature in Windows 8, but if you right click the Shutter icon in the notification area of the taskbar it’s possible to access the various power down states from the Now sub-menu.


But arguably the most useful element of Shutter is its remote access option. Click the Options button in the main program window, or select this from the system tray menu. While you are here, you might want to select the autorun option so that the program starts with Windows.

This is important if you want to ensure that your computer always shuts down on a schedule or you want to have the remote access option available at all times.


Moving to the Web Interface tab, you can turn on a very useful option.  Tick the Enable box, select your computer’s IP address from the Listen IP menu and then choose the port you’d like to use.

You are required to secure your remote session, so enter a username and password before clicking Save.


Assuming you have a firewall in place, you will need to grant Shutter permission to make use of your network before you can continue with this feature of the program.


Returning to our scenario in which a lengthy download is getting in the way of going to bed, the remote access option is particularly useful. You could head off to bed with your laptop, watch a movie or catch up on emails beneath the sheets and log into your other machine via Shutter.

Fire up your web browser, enter the IP address of your computer into the address bar followed by a colon and then the port number you have specified – e.g.


At first it may seem as though you have just been presented with a list of shut down options, and it’s certainly true that you can jump right in and remotely sleep your PC if you want. However, you may first want to check just what’s happening on the machine.


You can click the ‘Information on Computer’ link to view details of processes that are running – which may help you to determine whether a particular task has safely completed – but the ‘Screenshot of a Desktop’ link gives you a quick snapshot so you can see exactly what’s going on before you decide what to do.

And because this is all web-based, you can even use your phone to control your PC from bed.


This is a wonderfully useful little utility that can also be controlled from the command line, which opens up additional possibilities. Let us know what you think of the tool in the comments below.

Mark Wilson is a software fiend and a fan of the new, shiny and intriguing. Never afraid to get his hands dirty with some full-scale geekery, he’s always trying out the latest apps, hacks and tweaks. He can be found on Twitter and Google+.

  • Published 02/10/13

Comments (9)

  1. Jeff Sadowski

    Learn to script. Use netstat in a script to monitor it and shutdown when done.
    A.) guarantees that the download is complete.
    B.) turns of computer as soon as it finishes.

  2. Alan

    Or use TeamViewer or similar to log in remotely and power off the machine?

  3. What?

    Is there something wrong with using the built in power management? Or how about using magic packets for powering up?! Most routers are capable of passing along special wake up packets including those special “magic packets” which will wake a computer from a dead state – assuming the BIOS is set accordingly. But for powering down or even sleeping it’s even easier with what’s already there.

    Seriously! Using the built in power management is there for a reason. So why install potentially more viruses or more crap-ware just to do something that’s already built in?

  4. Ben Stirred

    Dear howtogeek officials,

    Please qualify your articles with the intended OS.

  5. Jeff Sadowski

    Following is the script I said. This script is for firefox but it should be pretty easy for someone to modify it to work with other programs
    @echo off
    rem the above turns off displaying for all commands
    rem allow variables to be over written
    Setlocal EnableDelayedExpansion
    rem reanitialise daownloading variable to false
    set “downloading=false”
    rem run netstat for TCP connections
    for /f “tokens=1,2” %%A IN (‘netstat -abnp TCP’) DO (
    rem if the program is firefox look at what firefox was doing
    if “%%A” == “[firefox.exe]” (
    rem if firefox was connected to the local machine ignore it
    rem firefox has a local connection per plugin
    if not “!PB:~0,9!” == “” (
    rem if it wasn’t a local connection it is downloading something so set the downloading variable to true
    set “downloading=true”
    rem let people watcching know it is still downloading
    echo downloading
    rem set the previous lines info so that we can use it
    set “PB=%%B”
    rem sleep 2 seconds
    ping -n 2 -w 1000 >NUL
    rem break the loop when downloading is finished
    if “!downloading!” == “true” (GOTO while)
    rem let people watching know what has happened
    echo done downloading
    rem shutdown the computer in 60 seconds
    shutdown /t 60

  6. WhytteDragun

    You could just use the shutdown command. WinKey+R to open the run dialog boxm then the command is:
    shutdown /f /s /t 3000
    That one will shut your computer down in 5 minutes. To change the timer, change the 3000 to however long you want, in seconds (up to 10 years!).

  7. WhytteDragun

    Oh, and make sure you save any open files, because that command won’t save anything before initiating the shut down.

  8. freewareer

    This is the old (though official) release. You should REALLY try the new shutter beta. It is far superior. You can add a series of triggers and events. It is like parametric scripting. You could run a saved preset to hibernate the computer, but give you a 1minute heads-up, then start your sync or backup jobs, close other programs and THEN hibernate. It is a true gem!

  9. Garry

    I love the idea of shutter as I normally leave my laptop on all night which I know is bad for it.
    However, I am having problems with shutter please please can somebody help me.
    My email address is

More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!