Changing Windows 2000 Password in C#

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s