I needed to get user information out of some of our AD's.
By using the following on the server:
csvde -d "ou=allusers,dc=example,dc=com" -f c:\extract.csv -r "(&(objectclass=user)(objectcategory=person))"
or using the following if you dont want all information about the users:
csvde -d "ou=allusers,dc=example,dc=com" -f c:\extract.csv -r "(&(objectclass=user)(objectcategory=person))" -l samaccountname
It creates a csv for you to use on your C:\ drive.