Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Sleep through Task Scheduler

05 Apr 2010   #1

Windows 7 x64
Sleep through Task Scheduler

I did read this tutorial Task Scheduler - Create New Task
but have no success with putting my laptop to sleep automatically.
May someone tell me what exactly I need to put under Actions? Do I need to make script first? because all I can choose there is Start program, Send email, or Display message And I have no idea what "program" I need to choose for sleep....

My System SpecsSystem Spec
05 Apr 2010   #2
not so gray matter

W7 Ult. x64 | OS X

Here's an article off Energy Star. I'll write it up into a tutorial for the forums.

Using Windows Task Scheduler to put PCs into standby or hibernate mode : ENERGY STAR
My System SpecsSystem Spec
05 Apr 2010   #3

Windows 7 x64

Thank you
My System SpecsSystem Spec

05 Apr 2010   #4

Windows 7 x64

I thought I will try first with line found for making shortcut for sleep so won't need download any extra programs:

C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep

But it will go to Hibernate instead, did just test it. Will try now the tutorial on the linked page, hope that works.
Still wondering though what's wrong with the line with rundll32.exe It was for Vista though at the page where I found it....
My System SpecsSystem Spec
05 Apr 2010   #5

Windows 7 x64

Hmm this script making is little too complicated for me

I can't get to work it

EDIT: working I did not make script file, just used "\PsTools\psshutdown.exe -d -t 00 -accepteula"
My System SpecsSystem Spec
19 Apr 2010   #6

windows 7 ultimate

Windows 7 Task Scheduler sleep command.

Well, I figured it out. To put a Windows 7 computer to sleep at a specified time using the Task Scheduler is a two step process.

First, you must disable the hibernation function. This can be accomplished with Admin rights on the CMD screen. See tutorial below:

Hibernate - Enable or Disable

Second, you need to use the following command in the Windows Task Scheduler:

Rundll32.exe Powrprof.dll,SetSuspendState Sleep

That is it!
My System SpecsSystem Spec
20 Apr 2010   #7

Windows 7 x64

Nice find if you don't need hibernate. I use it though But hope this can be useful to someone who need only sleep otption. Thanks for sharing.
My System SpecsSystem Spec

 Sleep through Task Scheduler

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Using Task Scheduler to restart a program upon wake from sleep
I'm using Logitech's latest LGS for my G700. It's very annoying that I have to exit and restart LGS when my system comes out of sleep or LGS doesn't recognize the mouse as being awake (windows drives it then). This happens when the mouse is running wirelessly. It also happens across versions. Is...
General Discussion
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
General Discussion
Task Scheduler Sleep Implementation
I want my computer to wake up every 4th hour for an hour and then go back to sleep. For example, the computer is in sleep mode and wakes up at 12AM then goes back to sleep at 1AM. Then it will repeat this and wake up at 4AM and goes back to sleep at 5AM. A total of 6 wake ups a day. Can it be...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:56.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App