ActiveDirectory Extractor is a command line utility designed to extract Active Directory data.
Usage:
-o, --output (optional) ... leave blank, to export to the console, otherwise specify a filename
Example: output.csv
-q, --query... LDAP query
Example: (&(objectCategory=User)(initials=*))
-f, --fields... comma-separated list of properties
Example: initials,givenname,sn,sAMAccountName,department,objectSID
-e, --encoding (optional) ... a valid encoding
Example: UTF-8, Windows-1252, etc.
-s, --sep (optional) ... the separator to use
Example: ;
-c, --conn (optional) ... an LDAP Connection-string
Example: ldap://DC=mydomain,DC=com
-u, --user (optional) ... a valid user-name on the target server/domain
Example: admin
-p, --pwd (optional) ... the password corresponding to the supplied LDAP
username