I wrote a C# application that unlocks users when they are locked out of their account (Active Directory). The application searches for users in a specific OU and will list the locked out users in a ComboBox. Then you select that user from the ComboBox and choose unlock.
If you are logged in as an admin, it works perfect. If you are a normal user no.
I want to run my application with admin creds but under a normal user also as secure as possible.
I was reading that maybe program a windows service but I'm unclear on how to program my application to install, run as a service, and run under admin creds.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…