Office 365 – Get distribution group members and output to csv (PowerShell)

#View a list of groups
Get-Group
#Set GroupName before running
Get-DistributionGroupMember -Identity "GroupName"| Export-Csv C:\Users\username\Desktop\groups.csv

Leave a Reply