.NET Active Directory Wrapper    
Access Active Directory From Your C# or VB .Net Code

Active Directory
Object Properties

DirectoryServices Namespace
DirectoryEntry Class

How to .. in C# .NET
Create User
Disable User
Enable User
Authenticate a User
Change User Password
Get DirectoryEntry of a user
Get Users in a Group
Get Object Property

Other Resources

System.DirectoryServices Namespace

.Net Framework 1.1 - 4.5 provide a namespace called System.DirectoryServices that provides classes to access to Active Directory. The functions in the class use the Active Directory Services Interface (ADSI).

The most commonly used classes in the System.DirectoryServices namespace are:


This class allows...

  • manipulation of Active Directory nodes and objects such as adding, deleting, renaming and changing object properties.
  • enumeration through the structure of the Active Directory Tree


This class allows...

  • Querying of LDAP resources such as ActiveDirectory