G
Guest
To change a password for a user I use this code
DirectoryEntry myDirectoryEntry
myDirectoryEntry = new DirectoryEntry(@"WinNT://" + domain +"/"+username+",User")
myDirectoryEntry.Invoke("setPassword", password)
myDirectoryEntry.CommitChanges()
But if I wan't to enable or disable an account, how do I do that
Regards
Anders Aleborg
DirectoryEntry myDirectoryEntry
myDirectoryEntry = new DirectoryEntry(@"WinNT://" + domain +"/"+username+",User")
myDirectoryEntry.Invoke("setPassword", password)
myDirectoryEntry.CommitChanges()
But if I wan't to enable or disable an account, how do I do that
Regards
Anders Aleborg