• Increase font size
  • Default font size
  • Decrease font size
  • default color
  • green color
  • red color

Linux Users Group, Jamshedpur

Sunday
Sep 05th
Home
How to turn off a computer remotely via email PDF Print E-mail
Written by Amarveer Singh   
Friday, 13 April 2007 18:09

 
At first glance it will seem like a 'complex, but to configure your PC to turn off automatically when receiving a command via email is a' very simple operation that takes only a few 'familiar with Outlook. The only prerequisites are:

 

  • an email address that allows downloading mail via POP3 (like Gmail)
  • the mail client Microsoft Outlook configured to download mail from the above

First step: creation of the file command for the shutdown

Create with your favorite editor (notepad is fine) a file called "shutdown.bat" Whitelist us and the following DOS command line:

  c: \ windows \ system32 \ shutdown-s-f-t 00 

Then save it to disk in a directory to your liking (it should be fine even in "c: \).

Second step: configuring Microsoft Outlook

The trick is essentially based on the creation of a rule message handler configured in a somewhat "special":

  • Open Outlook, then select "Tools => Rules and Announcements => New Rule."
  • In the box that appears set the options as shown in the picture below, then select the button "Next" 
  • In the section "Step 1: check conditions" select "with specific words in your" then set "turn off the computer." Verify that the settings are consistent with those reported in the image below, then select the button "Next" 
  • In the section "Step 1: Select the action" choose "start application" and then enter the path of your file "shutdown.bat". Select the button "Next" twice, and once arrived at the final step of summing compare it with the following to make sure you have correctly performed each task, and then select "Finish" and then "OK" 

At this point, after being sure that Outlook is configured to connect to the POP3 server (for download of mail) with an interval of time ragionevolmante low (eg 1 minute), you can test your system to shutdown automatically by sending all 'address email account in question, a simple message object that contains the words "turn off the computer" just 's will trigger the rule for the execution of the command file "shutdown.bat".

Obviously, you already deduced that from you 'run the shutdown is only one of the possible commands manageable via email: for example you could create a whole series of rules based on different commands in the subject line of mail to handle eg reboot the PC, rather than launching a specific application (like uTorrent or Emule), etc. ...

Last Updated on Sunday, 10 May 2009 21:00
 
Headline
  • Pause
  • Previous
  • Next
1/8