Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

69 posts

Master Geek
+1 received by user: 1

Topic # 191540 8-Feb-2016 08:32
Send private message

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!





Create new topic


9263 posts

Uber Geek
+1 received by user: 1320

  Reply # 1487514 8-Feb-2016 14:43
Send private message

I will guess there is almost certainly an api call through powrprof available. But the quick answer I can give is the sleep option of the Microsoft psshutdown utility:

69 posts

Master Geek
+1 received by user: 1

  Reply # 1487559 8-Feb-2016 16:10
Send private message

Thanks GZT, I will look into that. I also forgot to mention that this PC runs headless and I use Remote Desktop to administer it. Will post my results.


69 posts

Master Geek
+1 received by user: 1

  Reply # 1487863 9-Feb-2016 10:03
Send private message

Well done gzt that worked a treat! Problem solved!

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

New Zealand hits peak broadband data
Posted 18-Jan-2018 12:21

Amazon Echo devices coming to New Zealand early February 2018
Posted 18-Jan-2018 10:53

$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27

Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02

Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15

Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37

Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59

Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42

New Chief Technology Officer role created
Posted 19-Dec-2017 22:18

All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54

How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52

NOW to deploy SD-WAN to regional councils
Posted 19-Dec-2017 19:46

Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52

New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47

Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.