Tuesday, December 18, 2012

Dump your Active Directory schema

Now and then I need to dump the current Active Directory schema or just do a little research in the schema.

Being a PowerShell junky, I won't go to ADSIEDIT even though that might seem easier at first. I'd much rather have the entire list of attributes as objects for filtering and sorting. So, PowerShell to the rescue.

(New-Object adsisearcher ([adsi] "LDAP://CN=Schema,CN=Configuration,DC=fabrikam,DC=com", "(objectclass=attributeSchema)")).FindAll()

Give it a go the next time you near a domain controller and have just enough permissions.

No comments: