Retrieving all Active Directory schema properties

Sometimes, you need to retrieve all current Active Directory schema properties.

//connect to AD and get the schema properties.
ActiveDirectorySchema schema=ActiveDirectorySchema.GetCurrentSchema();
ReadOnlyActiveDirectorySchemaPropertyCollection properties = schema.FindAllProperties();

Properties will contain a collection of all the current AD properties. you can check whatever properties’ values. For example, properties[0].Name, properties[0].IsSingleValued


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: