Browse by Tags
All Tags »
System.DirectoryServices (RSS)
Hi all, You may get an Access Denied error ( COMException 0x80070005 ) when using System.DirectoryServices.DirectorySynchronization in your .NET application with a non-admin user , but everything works fine with a domain administrator. This issue will
Read More...
Hi all, welcome back, When working with System.DirectoryServices.DirectoryEntry in .NET , we may change the password of the user with a code like the following ( C# ): user.Invoke("ChangePassword", new object[] { oldPassword, newPassword } But invoking
Read More...
Hi, welcome back, We may want to get the list of Active Directory Providers (" LDAP: ", " WinNT: ", " IIS: "...) with .NET the same way we do it with this VBScript : Set ads = GetObject("ADs:") For Each provider In ads Wscript.Echo provider.Name Next
Read More...
Hi, welcome back, You may want to get Password Expiration Date for a given user with System.DirectoryServices . You may be tempted to use a code like the following: DirectoryEntry entry = new DirectoryEntry(path); object obj = entry.Properties["PasswordExpirationDate"].Value;
Read More...