开发者

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.

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜