// Programming in C#

using System;
using System.DirectoryServices;
public class MyChangePasswordExample
{
public static void Main(string[] args)
{
  DirectoryEntry myDirectoryEntry;

  myDirectoryEntry = new DirectoryEntry (@"WinNT://yourdirectoryserver/TheUsername,User");

 myDirectoryEntry.Invoke("setPassword","NewPassword");

 myDirectoryEntry.CommitChanges();

}
}

相关文章:

  • 2021-12-06
  • 2021-12-03
  • 2021-12-03
  • 2021-12-09
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案