How to authenticate the administrator username in Windows
I want to authenticate the ad开发者_运维问答ministrator username's password.
The administrator username is not a domain account but a local system account. I am trying to do this in Python, but any code even if it is .NET, VC++ would be fine. ThanksYou can either LogonUser (and be sure to CloseHandle after) or call NetUserChangePassword (with old and new passwords the same). Anything in .NET or Python will likely wrap LogonUser.
精彩评论