Click here to Skip to main content
16,018,949 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to log on into PC from sleep when the PC required password to log on it.
Can I create windows service to automatically enter the password and log in into the PC when it wake up from sleep.

How to create Windows Credential ?

What I have tried:

From what I read, It required custom Windows Credential to automatically log on into the PC if the PC have password.
Posted
Updated 24-Jul-16 17:22pm
v2

Quote:
Can I create windows service to automatically enter the password and log in into the PC when it wake up from sleep.
I would say that you don't. This is hacker stuff.

Either you are the owner of the computer and you just have to deactivate the feature (Windows setting).
Either you are not the owner and the feature was activated for security reasons. What you want is to get around this security feature, it is hacker stuff.
 
Share this answer
 
You have to create windows service for this and use windows credential in your code.
 
Share this answer
 
Comments
Member 12154788 17-Jul-16 23:32pm    
Do you have any example to create the windows credential code. Sorry but i am still new in this.
You cannot unlock the workstation from code. Allowing such would be a security risk.

The best you can do is implement the ICredentialProvider[^] interface. This allows you to provide your own credential interface and authentication code but you get no ability to unlock Windows at all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900