Ping Services

Saturday, March 19, 2011

Shutdown your Windows computer at any time

imageI have previously written an article showing you how to automatically shutdown your computer on Linux [1]. Now I will show you how to do the same thing on Windows.


Note: My Windows Installation is in German and I will keep translating what I am doing into English so it is possible that what I write may not be exactly what is present on an English Windows Installation.  
Step 1: Create a shortcut icon.

You just need to right click on the desktop and then go to New » Shortcut
 
Step 2: Enter a target for the shortcut.
 Just copy and paste this into the target
shutdown –s –t XXXX
You will then be asked to give a name. Just name it anything you like.
Step 3: Choose another icon:

We can choose an icon that is more appropriate for this task by right clicking the icon, going to “Shortcut” and then going to “Change icon”.You will get an error dialog but just click OK and you will get a gallery of icons to choose from.
And now you have a nice shutdown icon!
Step 4: Finding out the amount of time till shutdown in seconds.
 
For example, if you wanted your computer to shutdown in 2 hours 30 minutes, you could use Google in order to convert this value into seconds.

Step 5: Enter time required
Now you just need to replace the XXXX by the number of seconds that were calculated.

And then it’s just a simple matter of clicking on the icon!
 
Bonus Tip:
You can change the -s in the target to -r if you would like to restart the computer instead.
Links
[1] How to automatically shutdown your computer on Linux.

No comments:

Post a Comment