I have spent most of this morning looking into the Task Scheduler and Event Viewer of Windows to try to understand better your advice on setting a scheduled task and how it all slots together. While researching that I think I discovered a mistake in you advice. The mistake concerns using the
Kernel-Power event as a to take an action.
You say it is possible to use
Kernel-Power Event ID
507 as the resumed from sleep flag. However, in digging into this I couldn't find any such events in my Event Viewer 'System' logs. What I did find though were
Kernel-Power Event ID
107 events and these were to do with resume from sleep.
I'm just making the point here in case some other unfortunate user runs into the same issue I reported in this thread and tries
Kernel-Power Event ID
507 as a trigger. It won't work, need Event ID
107 if going down the
Kernel-Power route.
If I'm mistaken in this please do correct me
@hdmi. And, I mean no offence by what I have written here — your help remains immense!
That said, I have some reservations on if
107 would work. I think if that was being used as the flag then a fairly long delay in exiting and launching Open-Shell anew would have to be made as the
107 log is made at (on viewing of my own log) some 10 to 20 seconds
before the
Power-Troubleshooter 1 event gets logged — so I'm thinking there might be some time lag from the
107 event being logged before the system is sufficiently 'initialised' for the workaround to work (hope I have expressed that clearly). But I'm just
guessing on this and don't know if I'll ever get around to testing my theory. If anyone has any comments on this I would be happy to hear them.
Thanks again!