Quantcast
Channel: Darryl's Awesome SharePoint Blog
Viewing all articles
Browse latest Browse all 25

Get user information out of your Active Directory

$
0
0
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.


Viewing all articles
Browse latest Browse all 25

Trending Articles