Link to home
Start Free TrialLog in
Avatar of kavvis
kavvis

asked on

Hibernate / Sleep mode Windows 7

Hi.
What I want to do is get my computer in Hibernate or Sleep mode 18:40
And then 07:00 I want it to start from Hibernate or Sleep mode..

I have look in powersave options and stuff but can only find shoutdown.

Best would be if I can write  .bat file for go to sleep and then one .bat to wake it again..

then run it from windows scheluguer...


//kavvis
ASKER CERTIFIED SOLUTION
Avatar of Xaelian
Xaelian
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Scripting is definitely one way of doing it but will only support sleep mode to wake.

Put this in a scheduled task at 18:40
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Open in new window


and then just run a
cmd /c

Open in new window

at 07:00

If you want to go the hibernation path use the following command line instead:
rundll32.exe PowrProf.dll,SetSuspendState

Open in new window


When in hibernation mode your computer is turned off and will not be able to turn on through any operating system events. I would look in to what your BIOS offers in form of automatic timed power on!
Avatar of kavvis
kavvis

ASKER

Thank you..
The settings was found in Boot.
And the shoutdown is perfect way to do it. Sometimes is verry simple!
Avatar of kavvis

ASKER

mgroover :


this works perfekt to put the computer into sleep
"rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

But to get it to wake up I cant get to work..

Should I do the same thing as I need whit the last script?
cmd /c