I need to export all users from two separate OU'S in AD to a CSV but with only specific fields.
So I need an export of all users in OU=MCM,OU=LON,OU=EMEA,DC=ad,DC=domainname,DC=net
and also OU=GRM,OU=LON,OU=EMEA,DC=ad,DC=insidemedia,DC=net
to the same CSV and i would like only the following fields to be exported.
How can I get this in a script that can be automated.