Changing Windows 2000 Password in C#
by: narendra
Changing Windows 2000 Password in C#
by: narendra
Description: How to change your windows 2000 password through C# project.
It is very simple code you just follow the bellow code.
It is useful to change you Operating System password through c# project.
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();
}
}
c# will alow to change the your windows 2000 password using System.DirectoryServices name space
Enjoy with this project!
Try to change your Operating System password.