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

ganders picture ganders · Apr 5, 2012 · Viewed 32.6k times · Source

Everything I've googled just says you can add them as a string array, but doesn't say what the available options are.

What are all the different properties that are available from Directory Services?

Answer

marc_s picture marc_s · Apr 5, 2012

You can put any of the valid LDAP attributes into PropertiesToLoad - see a list of all Active Directory attributes here - what you need is the Ldap-Display-Name for each attribute you're interested in.

Also: Richard Mueller has a site with lots of good info on AD and LDAP - including Excel spreadsheets of the AD attributes (and also a mapping from the Active Directory User & Computer tool to the actual AD attributes being set on those various dialog screens.