开发者

How to Change ADS password at initial login

开发者 https://www.devze.com 2023-01-02 04:56 出处:网络
I wan开发者_开发技巧t to change the initially assigned password at the next login on a ADS container..

I wan开发者_开发技巧t to change the initially assigned password at the next login on a ADS container.. How to do this programmatically ?


You can change a password in Active Directory using the DirectoryEntry class:

DirectoryEntry directoryEntry = new DirectoryEntry(ADPath, ADUser, ADPassword, AuthenticationTypes.Secure);
directoryEntry.Invoke("ChangePassword", new object[]{strOldPassword, strNewPassword});
  • Resetting Passwords in Active Directory with C# ASP .NET
0

精彩评论

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

关注公众号