0

Easiest Way to Schedule a Computer Shutdown


shutdown_logoI listen to music all the while. Be it traveling, studying or even while trying to sleep. Talking about sleep, its not always convenient nor economical to leave you computer switched on all night. So an easy way out could be to tell someone in your family to switch off the computer after you’ve dozed off or still better, don’t trouble anyone and schedule a computer shutdown by yourself!

Well there are two ways here. One is the software way and the other is the command prompt way. Yeah cmd does look a little intimidating but just here me out. Once you complete the following steps, you’ll see how easy it really is.

  1. So first you’ll have to go to Start => Run or Start+R.
  2. Now just type the following

    shutdown.exe -s -t 20

Thats it! But don’t press OK or Enter yet. There’s some explanation to be done with.

So the command that you’ve entered here is shutdown.exe -s -t 20. Lets break it down now.

  • shutdown.exe : Quite self explanatory. The program which shut’s down your computer.
  • -s : Called as an argument, it says to shutdown the computer. Similarly if you would replace it with -r, the computer would have restarted -l would have logged of the computer.
  • -t : Again an argument. It functions as a timer. The number succeeding it is the number of seconds the computer must wait before shutting down. So 20 here says the computer to shut-down after 20 seconds.

You could change the time. Suppose you want the computer to shutdown after 15 minutes, just enter the period in seconds. 15×60 = 900.

computer-shutdown tutorial

Animation showing the computer shutdown process.

Trick: Although this is not needed, this step can add a cool message to your shutdown window. Just add a -c “comment” to the earlier command. You can replace comment with anything you like. eg:

shutdown.exe -s -t 900 -c “This shutdown has been inititaed bby Richie – the greatest hacker!”

You’ll get a cool message like this:

shutdown_with_comment

Shutdown with Comment

You could use the following table for your reference as to which arguments to use:

Argument Used for
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c “comment” Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown:

u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)


Filed in: How-to, Tips, Windows Tags: , , , , , , , , ,

Related Posts

Bookmark and Promote!

Leave a Reply

Submit Comment

© 2012 Tech With Ric. All rights reserved. XHTML / CSS Valid.