Story: I have a motherboard CD provided by Intel's original motherboard. When I install drivers it asks for username and password of the administrator account.
After every driver installs, the system will be restart and doesn't ask for the username and password.
My idea is that Windows should have a way to validate and enter username and password
Could you please let me know how to do this in C#, thanks.
I think this article might help you.
Let me know if you face any problem while understanding the code.
Edit 1 : I am confused with your question.
Do you want to validate a entered username and password?
Ahh, sorry for the delay. Here's the converted c# code
Add following namespaces:
And then here goes the main code :
Let me know if you face any problem.
You can find out your username by going to a command prompt and typing:
and it will print something like
that's your logged in username.
I'm pretty sure your password is empty/blank because otherwise it would prompt you.
You can use the Auto Admin Login feature, which is controlled by a few registry keys. See http://support.microsoft.com/kb/315231