本文介绍了通过C#更改Active Directory用户的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
我只想问你一个简单的问题.
如何在Active Directory中更改用户密码...
每次尝试更改时,都会收到一个COM-Exception Unkown错误
Hello !
I just want to ask you a quick question.
How to change userpasswords in Active Directory ...
Every time i''ll try to change, i get a COM-Exception Unkown error
public void ResetPassword(string userDn, string newpassword)
{
DirectoryEntry user = new DirectoryEntry(userDn);
user.Invoke("SetPassword", new object[] { newpassword });
user.Close();
}
请帮助我:)
Please help me :)
推荐答案
这篇关于通过C#更改Active Directory用户的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!