How to schedule a shutdown, reboot or hibernation in Windows 7


How to schedule shutdown in Windows 7 It can be handy to know how to schedule a shutdown in Windows 7 sometimes. If you know you’re leaving the house in a few, but you want to finish that download or your latest fraps video render, then you can schedule a shutdown via the built-in task scheduler that is really very easy to use.



First of all, open up the task scheduler of Windows 7.

1. Click on start and enter “task scheduler” into the search field, alternatively enter taskschd.msc or click on “Programs/Accessories/System Tools/Task Scheduler.

2. Let’s create a basic task, simply click on “Create basic task”:

Create Basic Task

3. Enter a task name e.g. Shutdown

Scheduled Task name

4. Define a trigger time, e.g. midnight.

Scheduled task start time

5. If you want to shutdown your PC daily at the same time, select daily.

Scheduled Task Trigger

6. Select a date range. Next, select “Start a program”:

Scheduled task: Start a program

7. Here’s the actual shutdown process. Type it in exactly as seen on the image:

Scheduled Shutdown Windows 7

How to schedule reboot, hibernation, log off

  • To schedule a reboot replace -s with -r
  • To schedule hibernation replace -s with -h
  • To schedule log off replace -s with -l

There are some options that you can use to specify how Windows 7 is supposed to shutdown, forced shutdown, wait time, etc.

  • -l Log off
  • -s Shutdown the computer.
  • -r Shutdown and restart the computer.
  • -p Turn off the local computer with no time-out or warning. Can be used with /d and /f options.
  • -h Hibernate
  • -t xxx If you want a timeout time before it shuts down the PC. xxx = time in seconds
  • -c “comment” If you want to comment on the shutdown process.
  • -f Force shutdown and terminate all open applications

How to modify scheduled task

If you want to modify or delete your scheduled shutdown task, open up the task scheduler and click on “task scheduler library” in the left sidebar. The task will be listed there as whatever you called the task in step (3).

Keep in mind that all open windows will be closed down and you might lose data that hasn’t been saved. So, make sure that you save everything before scheduling a shutdown task in Windows 7.


Or you might like these sexy wallpaper, tweaks and themes:

Written by oliversk Saturday, May 29th, 2010

Was it helpful? Please bookmark it and spread the word

delicious   facebook   google   twitter  

You love Windows, Gaming and everything digital? Great, we too! We have thousands of great Windows 7 themes, registry tweaks, tutorials, so please use our search box if you look for anything specific. If you have some awesome desktop themes, tips or want to write for us, then drop us a mail: win7themes at googlemail.com

8 Responses to How to schedule a shutdown, reboot or hibernation in Windows 7

  1. Dirol said:

    tried the hibernation method ONLY which did NOT work on windows 7 ultimate x64.

  2. sOliver said:

    I’ll look into it Dirol, don’t know why it would not work. Try to create a shortcut with the command shutdown -h and see if that works..

  3. Dirol said:

    I tried using “-h -t1″ and when the task is on time to be excuted, a cmd window opens and closes quickly so i don’t know what is written in there as well as i’m not sure if it is my computer only getting this.
    but when i tried “-h” only, it worked. Besides, you mentioned creating a shortcut, what do you mean exactly?

  4. Dirol said:

    I’m also interested to know how to kill/End a process in that please.

  5. sOliver said:

    You can create a shortcut to shutdown your computer. Read this tutorial:
    Shortcut to desktop

    I know your problem know. You wrote:
    -h -t1

    To schedule the shutdown with a timeout it needs to be:
    -h -t 1

    There is a space between the t and the number.

    If you want to schedule a “process killing”. Try to schedule this command:

    taskkill /IM process.exe

    or if you know the PID (process id) you can run:

    taskkill /PID number

    You might want to read this article about the powershell, which
    you can use to do some really cool stuff:
    Windows 7 Powershell

  6. Dirol said:

    Aooo… Sorry :S. No the “-h -t 1″ with space didn’t work. (sorry for writing it wrongly in my previous post).

    Ok: thanks for the info of the “Process Killing” :)

  7. Jib said:

    Usually under Windows environment, options are preceded by the slash character and not the dash like under Linux environment. So it should be: shutdown /h /t 1

  8. Sam said:

    Is it also possible to instead of the -h for hibernate use any other -flag for putting the pc to rest to standby ?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>