Windows 10: Power-Troubleshooter not triggered on wake from sleep

  1.    15 Jan 2017 #1

    Power-Troubleshooter not triggered on wake from sleep


    Hi, I have been researching on how to launch a simple command prompt command and then pipe the results to a text file whenever my laptop is woken from sleep.

    I am using Task Scheduler and triggering the action based on
    Log: System
    Source: Power-Troubleshooter
    Event ID: 1


    However, the action isn't being triggered and when I checked Event Viewer, I realised that Power-Troubleshooter with an Event ID of 1 doesn't seem to be triggered on every 'wake from sleep' event. Is this supposed to be the case ?

    Any alternatives to trigger the action will be greatly appreciatred.
      My ComputerSystem Spec

  2.    16 Jan 2017 #2

    I did this type of thing on Windows 7 years ago. And like you, I found that the Power-Troubleshooter event wasn't always getting generated.

    IIRC, I had to trigger on a Kernel-Power event too. I just checked my Event Viewer, and it looks like Event ID 107 of Kernel-Power in the System log is generated whenever the system resumes from sleep. Try triggering on that event as well.

    I haven't tried writing a script like this on Windows 10 yet though. Please let me know if it works. I may need to do it myself real soon.
      My ComputerSystem Spec

  3.    18 Jan 2017 #3

    Eksy61 said: View Post
    I did this type of thing on Windows 7 years ago. And like you, I found that the Power-Troubleshooter event wasn't always getting generated.
    IIRC, I had to trigger on a Kernel-Power event too. I just checked my Event Viewer, and it looks like Event ID 107 of Kernel-Power in the System log is generated whenever the system resumes from sleep. Try triggering on that event as well.

    I haven't tried writing a script like this on Windows 10 yet though. Please let me know if it works. I may need to do it myself real soon.
    Currently, I am using Kernel-General with an event ID of 1 to trigger the action. It seems to be working 100%
      My ComputerSystem Spec

  4.    18 Jan 2017 #4

    You trigger on system time synchronization with the hardware clock? In my Event Viewer, I see other events of that type that have nothing to do with wakeup:
    The system time has changed to ‎2017‎-‎01‎-‎17T14:23:02.021000000Z from ‎2017‎-‎01‎-‎17T14:23:02.021956600Z.

    Change Reason: An application or system component changed the time.

    I wouldn't want to trigger on that.
      My ComputerSystem Spec


 

Related Threads
Dear all I'm trying to get wake on lan working on my new computer after a shutdown from windows. I'm using the following hardware/software: Asrock X99 Extreme 4 with onboard Intel I218-V --> connected trough wired lan Windows 10 EDU 64 bit The...
. . . Macrium Reflect "fix boot errors" is saving my A**! Between updates, on Wake from Sleep, no Wake . . .. requires hard start . . . spinning dots . . . no boot . . . requires my Macrium Reflect intervention disk . . . "fix boot errors" . . . ....
Please delete - post needs to be rewritten
will not wake from sleep in General Support
I have a 4 yr old custom built desktop upgraded from Win 7 pro to Win 10 pro about 8 months ago. Up until two weeks ago the sleep/wake up has worked perfect. Now the unit will not wake from sleep. I have tried everything I have seen and...
hello This is a problem with my Dad's PC, I am default tech support but this is beyond my knowledge. I don't have access to the PC all the time but have been going on with team viewer (thankfully, saves a long drive). BSOD: Driver power state...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 13:36.
Find Us