Bulk reporting from AD (Part 1)
Extracting the object information from AD is the frequent task for active directory administrators, most of the administrator’s uses script to do the task, but we can use the simple command to extract bulk object from AD
If you want specific attribute details for all the users from TEST OU
syntex:
csvde -f “file path” -d "OU LDAP path" -r "(&(objectClass=user)(objectCategory=person))" -l "attributes"
Example:
csvde -f C:Tempexportnew.csv -d "ou=test,dc=test,dc=com" -r "(&(objectClass=user)(objectCategory=person))" -l "displayName, mail,lastLogon"
In the above example I have extracted the entire users display name and mail ID from the test OU in test.com domain.
This is the end of Part1 article; I will be covering the CSVDE command in detailed in next part (Part2 article series)
Subscribe to Windowstricks by E-mail to get the free updates and free tools