Hi all.
I have a small issue that so far I am unable to resolve. I have an old pc running Win 10 pro. It is set up to wake at 3.00 every morning to back up my home server to a pair of drives.
The PC is set to hibernation off, (powercfg.exe /hibernate off). it is set to S3 standby. The reason for this is that the PC will not resume correctly and will crash with Hibernation turned on (not worried about this). One drive is via Firewire and the other is via Esata (this one is removed and swapped with another drive and kept off site in rotation). If this seems a strange setup it is due to the fact that it is all assembled with bits lying around!
If I let the pc sleep on its own it will wake via Task scheduler without issue. The issue I am having is that if I put the PC to sleep via the command line it refuses to wake with the error "the operator or administrator has refused the task (0x800710e0). I have tried the following commands, (%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby) , (rundll32.exe powrprof.dll,SetSuspendState 0,1,0) ,and (rundll32.exe powrprof.dll,SetSuspendState Sleep). They all sleep the PC but it will not wake as requested.
I need the command line to work as after FreeFileSync had backed up any changes it will run the command to sleep the PC. I have just set the power settings to sleep the PC after 10mins which works for me but I find it annoying that none of the command lines will work.
I need a command line that will perform the same action as the actual sleep that the PC achieves when it goes to sleep by its self, S2 sleep mode without hibernation or hybrid sleep?
Any ideas and sorry about my protracted explanation!