What are the various properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad

All I google just says that you can add them as a string array, but not talking about the options available.

What are all the different properties that are available from directory services?

+9
c # active-directory directoryservices
source share
2 answers

You can put any of the valid LDAP attributes into PropertiesToLoad - see the list of all Active Directory attributes here - that you need an Ldap-Display-Name for each attribute you are interested in.

Also: Richard Muller has a site with a lot of information about AD and LDAP - including Excel spreadsheets for AD attributes (as well as mapping from Active Directory User and Computer for the actual AD attributes set on these various dialog screens.

+16
source share

The active directory, like any other directories, contains objects that are described above according to the scheme . The scheme describes each type ( class ) of an object that can be inserted into the Directory, and for each type gives the attributes (properties) that it supports.

The scheme can be extended by an application (for example, Exchange), you can view the scheme in your AD by registering the MMC provided for this:

 regsvr32 C:\Windows\System32\schmmgmt.dll 

You can then download the MMC.EXE program and take a look at the class you are embedding in and the attributes that it provides.

Schema management MMC

To see all the objects in your Direcory with all their attributes, you can use the LDP.EXE program (based on the support kit in W2K3 installed on the AD W2K8 server)

Ldp program

+5
source share

All Articles