I was putting together some documentation and need an export of all computer accounts in Active Directory.
Export Computer Accounts – This will export the DN (distinguishedName, CommonName)
csvde -f output.csv -d “DC=Steve,DC=Schofield,DC=com” -r “(objectClass=computer)” -l cn -j c:
All objects in a specific OU.
csvde -f output.csv -d “OU=My EmailContacts,OU=EmailStff,DC=Steve,DC=Schofield,DC=com” -r “(objectClass=*)” -l mailNickName,cn -j c:
Hope this helps.
Steve