Is there a way to change a users password on a remote computer using WMI? I couldn’t locate any resources on this.
I’d just like to add that we are not using active directory and I need to write my code in C#.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, these are VB Script examples in this Hey Scripting Guy column, but they should be translatable:
The first part is AD based, but is just being used to find all of the machines in the domain. The second part (that does the actual remote password reset) doesn’t rely on AD at all.
So, it’s basically bind to
WinNT://<ComputeName>/<UserName>, then callSetPassword().And this other SO question on changing the local admin account password is already in C#: