I am attempting to set or change a password while the "User must change password at next login" gives me an error for the same thing. I am on a Microsoft AD 2003 environment. I am also using C#, with the following:
DirectoryEntry DE = new DirectoryEntry
("WinNT://domainservername/username,user",username,password,Authenticate.Se cure);
DE.Invoke("ChangePassword", new object[] {currentpassword, newpassword});
DE.Close();
There is something that I am getting COMException on the Invoke. Is there any different way to do it? Thanks.
Bookmarks