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:
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
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?