How do you list the members of an Active Directory Group in PowerShell?

This is a very useful line of code that will list all of the members of a particular Active Directory group and send the output to a .csv file.

Get-ADGroupMember -Identity "Test Group" | export-csv c:\temp\GroupMembers.csv

Leave a Reply

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