开发者

How to authenticate the administrator username in Windows

开发者 https://www.devze.com 2023-01-16 02:57 出处:网络
I want to authenticate the ad开发者_运维问答ministrator username\'s password. The administrator username is not a domain account but a local system account.

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.

Thanks


You 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号