I have a server which has machines...
I have an administrator and multiple users... these are all windows users and not present in the databse.
How do i reset the user password.... i log in using the administrator and provide the username that needs to be reset..
I tried
string newPassword;
u = Membership.GetUser(UsernameTextBox.Text, false);
but this does not work...
any suggestions... thanks
Code to add users:
DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");
DirectoryEntry NewUser = AD.Children.Add(username, "user");
NewUser.Invoke("SetPassword", new object[] { password });
NewUser.Invoke("Put", new object[] { "Description", description });
NewUser.CommitChanges();