Scenario:
- Task Scheduler - puts a system to a sleep
- Task Scheduler - wakes the system up
- Task Scheduler - launches another program but it is vital that it was
Problem:
During the wake up procedure, a system state stops at the window namely "Lock Screen" which shows time and it cannot really run tasks I want after the system's wake up.
To deal with the Lock Screen, I usually do the following:
- Press Enter -> takes me to user account selection window
- Press Enter again -> having one account and no password -> takes me to desktop.
My thoughts so far:
Perhaps I could execute some script which would help me send "Enter" command as input to these two states, yet, I have no clue how to do that.
Relevant to some extent resources found by far:
- How to perform keystroke inside powershell?
- Put computer in standby after running a scheduled task but only if it had to wake up to run it
If there are suggestions or other ideas on how to go around this Lock and User Account screens, I am grateful if you share it!
Thank you!