tags:

views:

28

answers:

1

I want to authenticate the administrator 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

A: 

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.

Bob
Thanks. Python has the Pywin32 module which supports the LogonUser function and it worked.
ages04