I want to turn on the PC from sleep mode on windows 10/11 programmatically in WPF (.net framework) C# application. How to achieve it ?
Vishal2 Bansal
145
Reputation points
I want to perform windows sleep turn on and then wake up the PC after some time say 2 days later.
I have two options :-
- Either programmatically sleep the pc and wake it up later automatically(but it requires manual entering of password to pc after wake up).
- Only Turn off the display: using below article https://stackoverflow.com/questions/713498/turn-on-off-monitor But then my monitor is turning on for a blink of 1 sec only and again turning off.
- Using Wake on Lan to turnon the display(I haven't implemented it yet). Want to know it's effectiveness for windows 10/11.
My preference is option 2,3. So can just me the way to overcome it and provide me the solution for same.
Sign in to answer