Change password programmically by WMI

Joined
Aug 9, 2007
Messages
1
Reaction score
0
Hi.
I work with Windows 2003 Server R2 , SP2.
I need to write the tool which 'knows' to change password to the specified user.
My computers are in WORKGROUP.
I would like to get examples how to do it.
I tryed to do it with NetUserChangePassword bud it was not succeded (Error code = 1327).
I know there is a way to use WMI. But i didn't find good example.

Thanks a lot.

P.S.: it must be C# code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top