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:
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”