Forum Discussion
Executing a script when waking up from sleep on Windows PC
To compensate for a bug (bios? driver?) from my laptop, I would like to schedule a task when I wake up. Perhaps simpler when I open the session (with or without a password, when I wake up it does not ask me).
Only I can't find anything in the task scheduler for that...
"Unlocking the workstation" works if I do a Win+L for example, but as when waking up from sleep I do not have a password request (I arrive on the locked screen but a press on enter takes me to the office), it doesn't matter.
That's it for the 1st question.
For the 2nd (but I haven't taken the time to think about it yet since without this first point the 2nd is useless), I would like to make a script that cuts and turns the wifi back on (as if I were going to the menu at the bottom right, which I click on Wifi and which I click again once turned off to turn it back on).
In fact my laptop has an Intel wifi card, and like many people I have a bug which means that my speed is filthy when waking up from sleep. I want to do all this **bleep** just to cut/turn on the wifi automatically when the computer comes out sleep...
Let's address your two questions step by step.
2 Replies
- DavidWilsonIron Contributor
When configuring, ensure "Wake the computer to run this task" is checked.
The key is the Power-Troubleshooter event with Event ID 1.
- InnesneCopper Contributor
Let's address your two questions step by step.