Get AD Group members from a list of AD Groups in Excel – Powershell

A customer had a list of Active Directory groups that they wanted to know who were the members and also export this to an Excel file.

We then need to get the AD groups members and also any other details you may need to report on

As you can see, I have also added in the Mail attribute as some of the Groups were actually Distribution Groups. I then just needed to export this to a csv file for reporting on

In the output we can see the results

Leave a Reply

Your email address will not be published. Required fields are marked *