Power-Troubleshooter not triggered on wake from sleep


  1. Posts : 24
    Windows 10
       #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 Computer


  2. Posts : 141
    Windows 10
       #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 Computer


  3. Posts : 24
    Windows 10
    Thread Starter
       #3

    Eksy61 said:
    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 Computer


  4. Posts : 141
    Windows 10
       #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 Computer


 

  Related Discussions
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 19:27.
Find Us




Windows 10 Forums