The objective of this article is to demonstrate how to export the emails that are part of an e-mail distribution group in Microsoft Exchange Online (Office 365) to a CSV file
.
1) Connect to Exchange Online with Windows Powershell
How to connect to Office 365 PowerShell
2) Enter the cmdlet:
[PS] C:Get-DistributionGroupMember -Identity "grupo@agapto.com" | export-csv C:members.csv