using System.DirectoryServices; using System.DirectoryServices.AccountManagement; string userPath = "WinNT://computerName/userName"; DirectoryEntry userEntry = new DirectoryEntry(userPath); object[] password = {newPassword}; object ret = userEntry.Invoke("SetPassword", password); userEntry.CommitChanges(); userEntry.Close();
Above snippet code can really update their passwords!
Change local administrator password in C#