Office 365 – Get distribution group members and output to csv (PowerShell)
#View a list of groupsGet-Group
#Set GroupName before runningGet-DistributionGroupMember -Identity "GroupName"| Export-Csv C:\Users\username\Desktop\groups.csv
#View a list of groupsGet-Group
#Set GroupName before runningGet-DistributionGroupMember -Identity "GroupName"| Export-Csv C:\Users\username\Desktop\groups.csv