Exporting Active Directory Data

I had a need to export particular data of users from a specific group in Active Directory. Windows has two tools for this: cvsde and ldifde – the de stands for Directory Exchange.
So the following gives an example of exporting to CSV data of users from a group. I just ran this from a Windows desktop:

csvde -m -f myoutput.csv -s mydc.ads.domain.tld -d “DC=ads,DC=domain,DC=tld” -r “(memberOf=CN=AllStaff,OU=MyOrg,DC=ads,DC=domain,DC=tld)” -l “givenName,sn,mail”

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>