Have you explored dsget.exe,dsquery.exe and csvde.exe? With CSVDE you can get
almost full AD export and with dsget.exe you can get most of "generally
required" attributes. dsquery "using *" is a generic ldap search tool using
which you can retrieve absolutely any information within AD including schema,
configuration, attributes etc.
e.g. to export all attributes of all users under OU "allusers" in domain
"example.com use -
csvde -d "ou=allusers,dc=example,dc=com" -f c:\some_file.csv
exporting only user accounts
csvde -d "ou=allusers,dc=example,dc=com" -f c:\some_file.csv -r
"(&(objectclass=user)(objectcategory=person))"
exporting just few attributes of user accounts
csvde -d "ou=allusers,dc=example,dc=com" -f c:\some_file.csv -r
"(&(objectclass=user)(objectcategory=person))" -l samaccountname
using dsget -
dsget user "cn=test user,ou=allusers,dc=example,dc=com" -empid
using dsquery *-
dsquery * -filter "cn=test user,ou=allusers,dc=example,dc=com" -attr
samaccountname employeeid
Post by cbassI need to create a report on users in Active Directory that contains
information such as the date their user account was created, whether their
account is disabled, password settings, and other user information. How
would I go about retrieving this information? My AD environment is 2003.