Last week I talked about the different shut-down options in Windows. One of our readers (Alexandra) wanted to know how to tell Windows to shut-down or hibernate at a certain time. The easiest way to do this is to set windows to automatically shut-down or hibernate after a specific period of idleness using the Power Option Settings. There might be several reasons why you would opt out the Power Option solution, but one reason might be that you do not want the computer to shut-down at all during the day. If that be the case, you can schedule Windows to shut-down at a specific time, say at 3 am after you have fallen asleep over the keyboard.
This is how you go about to do just that (not fall asleep, but schedule the computer to …)
- Start the Windows Task Scheduler (Click The Start-button, and type “
Task” or “
Schedule” in the Search Field)
- In the Action Menu, you find the option called:
Create Basic Task. This will open the Task Wizard.
- Give the Task a Name:
"Sleep when I do", and click Next.
- Choose when you want the task to run (
Daily), Click Next
- Now choose what time we want the computer to shut-down. In this example I chose
2 am. Click Next.
- At this point Windows want to know what kind of task to run, choose “
Start a Program” and click Next
- In the Program Field, type:
- In the Add argument field, type:
-h t 60 f(or
-s t 60 f)
Translated this means, hibernate, give 60 seconds timeout to stop action, and force shutdown of any running application.
(For other options see the list below)
- Click Next
- Click Finish
And that is it.
s = shutdown
h = hibernate
l = logoff (not shut-down)
t xxx – timeout (give the user a chance to abort)
f – Force shutdown of running applications
p – Force action without timeout or prompt
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 “Sleep When I do” (if that is really what you called it.