Using CSVDE to export computer accounts from AD

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: