I am looking for someone to tackle very quickly this simple project of retrieving certain attributes on user accounts in a specific OU in active directory and output to CSV in format attached. The format has to be exactly as attached. Its only has 4 columns needed of which the forth column is fixed and not an AD attibute.
SamAccountName ---> userid --1st Column
DisplayName ---> Fullname -- 2nd Column
mail ----> email -- 3rd Column
approle -- Security Administrators (this is a constant for every row above. it is not an AD attribule)
All headers have to be exactly as shown in attached CSV file