How to Restart or Shut Down Your Computer Remotely using Microsoft Outlook

rulesHead I have been using Outlook as my email client for many many moons now. It is not just because I am required to for my job ““ I really like it and I have got it to the point where it is a help to my work and not a hindrance.

Today I am going to show how I use Outlook rules to restart my computer remotely or to shut down my system if need be.

In all actuality I have created many rules over the years and would like to show them to you ““ who knows maybe they will be as helpful to you as they are to me.


First let’s look at creating a rule in Outlook:

how to restart my computer remotely

Here you can see the rules window. You can get there by hitting Tools ““ Rules and Alerts.

how to shut down my computer remotely

If you already have any rules created they will be here. A rule is simply a law on your computer that states when a message arrives with a specific subject, comes from a specific account or any of the other rules, a specific action will be taken. People use these to setup auto-forwards or automated responses. I use these to take actions on my computer.

My first rule shuts down my system and the second one restarts the system. After you start creating the rule hit the Start from a blank rule radio box. This gives us the most flexibility.

rule3

Next select Check messages when they arrive. This will scan only incoming messages for your rules. Obviously if you want to be slick you can have things happen when other people send messages on your machine. You can really achieve automation with these rules!

rule4

To be on the safe side ““ ie: not have someone else send me a keyword and have my Outlook jump through hoops for them as well – we want to make sure that the rules are only processed if they come from my account that I have specified for this.

rule5

Next up I hit the specific keywords link and I specify my keyword(s). In this case I used the key word ““ SecretKeyWord. This is case sensitive and the email’s subject would have to have SecretKeyWord in the subject just like that. Then that will trigger our Action which you will see shortly.

rule6

Our action is going to run a batch file so we choose start an application. You will need to create a batch file for each action. For example to shutdown the computer your batch file (a text file saved with the .bat extension) would have this line and only this line in it:

shutdown ““s ““t 00

and to create the same rule that restarts the computer just use this command:

shutdown ““r ““t 00

rule7

When an email arrives with SecretKeyWord in the subject the batch file will be launched and the machine will be restarted ““ blamo just like that!

You can create any batch file or even start an application on your machine with parameters. The possibilities are endless! Let us know how you use rules in the comments!


MakeUseOf Recommends

Karl L. Gechlik

Karl L. Gechlik here from AskTheAdmin.com doing a weekly guest blogging spot for our new found friends at MakeUseOf.com. I run my own consulting company, manage AskTheAdmin.com and work a full 9 to 5 job on Wall Street as a System Administrator.

The comments were closed because the article is more than 180 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

Hide 13 Comments

  • Psyfon July 21, 2009
    0 likes

    The rules to both shutdown and restart are the same?

    | Like
    • Karl L. Gechlik July 21, 2009
      0 likes

      Ouch the restart command is shutdown –r –t 00 sorry about the typo – can we get that fixed Mark?

      | Like
  • PeterD July 21, 2009
    0 likes

    Karl, can you explain a little how the start up works, it sounds like a great idea but I cant work out how it would work.

    | Like
    • Karl L. Gechlik July 21, 2009
      0 likes

      So the deal is you setup rules with batch files before hand when you want to launch the abtch file on your computer you send an email with the keywords it triggers the application and blamo it works.

      | Like
  • Jeff July 21, 2009
    0 likes

    I believe that it should read as follows for a restart:
    shutdown –r –t 00

    You can see all of the shut down options by using:
    shutdown /?

    | Like
    • Karl L. Gechlik July 21, 2009
      0 likes

      You are correct Jeff.

      | Like
  • Moe July 21, 2009
    0 likes

    Is there a way to add a command that OUtlook should first shutdown as not to mess up the PST Files?

    | Like
  • PeterD July 22, 2009
    0 likes

    I think I am being dumb here, how can a PC that is shutdown not only download an email but also run a batch file. I really want to be able to do this but am I missing a point?

    | Like
    • Corey July 26, 2009
      0 likes

      I think his wording is a little misleading on this one. You obvious can’t shutdown THEN restart a computer with Outlook. You can either shutdown OR restart the computer. If a computer is powered off the only way to turn it on is to have wake-on-lan active and send the computer a “magic packet” which turns it on.

      | Like
      • PeterD August 4, 2009
        0 likes

        Thanks Corey, that explains that

        | Like
      • Will Robinson August 6, 2009
        0 likes

        No offense Corey, but even that’s wrong. If a computer is powered off then the only way to turn it on is by physically turning it on (if it has no power then it wouldn’t be able to detect lan let alone turn itself on). I’m sure you were referring to hibernation or stand-by.

        | Like
        • Karl L. Gechlik August 6, 2009
          0 likes

          Will he is talking about Wake On Lan that allows for this to happen. WOL google it.

          | Like
  • jlo January 20, 2010
    0 likes

    how would you pass a parameter from the email subject to the app starting?

    | Like