I have the problem that scheduled tasks will only cause the pc to wake up from sleep, if the PC has been put to sleep with the GUI manually.

However, if I use the command line to suspend the computer the computer will not wake up and the scheduled task will not execute.

I already tried all of the below commands:

  1. %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

  2. %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby

  3. powercfg -hibernate off and %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0

None of those commands works like the GUI does! I also tried forcing S1 instead of S3 sleep in the BIOS. This did not help either. OS is Windows XP. This is perfectly reproducible and very annoying.

How can I suspend the computer from the command line, so it wakes up when a scheduled task is run?

2 Answers 2


I have found a solution: psshutdown -d -t 0 works!

You can download it here.


shutdown /h has worked for me for years. (C:\Windows\System32\shutdown.exe)

  • 1
    Do scheduled tasks wake the computer afterwards?
    – Daniel Beck
    Apr 29, 2013 at 7:24
  • @DanielBeck: Yes. Another thing is that in the last few months my Win8 x64 does not execute the task after waking up from hibernation at the prescribed time. I don't know if it's specific to my computer. Maybe I should file it as a separate question? I worked around it by scheduling twice (7:30 and 7:32) with Do not start a new instance setting.
    – robert4
    May 30, 2013 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.