Sleep through Task Scheduler

Kika

New member
Member
VIP
Local time
3:08 PM
Messages
113
Location
England
I did read this tutorial http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html
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 :huh: And I have no idea what "program" I need to choose for sleep....
 

My Computer

Computer Manufacturer/Model Number
IBM
OS
Windows 7 x64
CPU
Intel Core 2 T8100 @ 2.10GHz
Memory
3 GB SO-DIMM DDR2-800
Graphics Card(s)
Nvidia GeForce Go 7300
Sound Card
SteelSeries Siberia 7.1 3D
Screen Resolution
1680x1050
Mouse
Logitech MX

My Computer

Computer Manufacturer/Model Number
Apple Macbook Pro (April 2009)
OS
W7 Ult. x64 | OS X
CPU
Intel Mobile Core 2 Duo 2.93Ghz [T9800 Penryn]
Motherboard
NVIDIA nForce 730i Rev. B1 [Mac-F2268EC8 (U2E1)]
Memory
4096MB Samsung DDR3 Dual Channel [PC3-8500F 1066Mhz]
Graphics Card(s)
NVIDIA GeForce 9600M GT 512MB [G96M Rev. C1]
Sound Card
SB X-Fi Surround 5.1 USB | Onboard Realtek (Disabled)
Monitor(s) Displays
Acer x223wbd 22" | Apple Anti-Glare 17" (Disabled)
Screen Resolution
{Current} 1440x900 {Acer} 1680x1050 {Apple} 1920x1200
Hard Drives
{Internal}
Seagate Momentus 320GB 2.5" 7200RPM [ST9320421AS]

{Externals}
LaCie 320GB USB 2.0 HDD [301284UR]
LaCie 750GB USB 2.0 FW400 eSATA HDD [301314U]
LaCie 1TB USB 2.0 HDD [301304UR]
PSU
Magsafe
Case
Aluminum/Unibody (MBP52)
Cooling
2 x 6000 RPM Fans
Keyboard
Logitech G-15v2 [PN 920-000379]
Mouse
Logitech G-9 [PN 910-000338]
Internet Speed
12Mbps/2.5Mbps w/ 24Mbps Speed Boost [Comcast]
Other Info
Logitech X-540 Speakers [PN 970223-0122]
Sennheiser PC-151 Headset
Thank you :)
 

My Computer

Computer Manufacturer/Model Number
IBM
OS
Windows 7 x64
CPU
Intel Core 2 T8100 @ 2.10GHz
Memory
3 GB SO-DIMM DDR2-800
Graphics Card(s)
Nvidia GeForce Go 7300
Sound Card
SteelSeries Siberia 7.1 3D
Screen Resolution
1680x1050
Mouse
Logitech MX
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 Computer

Computer Manufacturer/Model Number
IBM
OS
Windows 7 x64
CPU
Intel Core 2 T8100 @ 2.10GHz
Memory
3 GB SO-DIMM DDR2-800
Graphics Card(s)
Nvidia GeForce Go 7300
Sound Card
SteelSeries Siberia 7.1 3D
Screen Resolution
1680x1050
Mouse
Logitech MX
Hmm this script making is little too complicated for me :(

I can't get to work it :( :(

EDIT: working :D I did not make script file, just used "\PsTools\psshutdown.exe -d -t 00 -accepteula"
 
Last edited:

My Computer

Computer Manufacturer/Model Number
IBM
OS
Windows 7 x64
CPU
Intel Core 2 T8100 @ 2.10GHz
Memory
3 GB SO-DIMM DDR2-800
Graphics Card(s)
Nvidia GeForce Go 7300
Sound Card
SteelSeries Siberia 7.1 3D
Screen Resolution
1680x1050
Mouse
Logitech MX
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:

http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.htmlhttp://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html

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

Rundll32.exe Powrprof.dll,SetSuspendState Sleep

That is it!
 

My Computer

OS
windows 7 ultimate
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 Computer

Computer Manufacturer/Model Number
IBM
OS
Windows 7 x64
CPU
Intel Core 2 T8100 @ 2.10GHz
Memory
3 GB SO-DIMM DDR2-800
Graphics Card(s)
Nvidia GeForce Go 7300
Sound Card
SteelSeries Siberia 7.1 3D
Screen Resolution
1680x1050
Mouse
Logitech MX
Back
Top