
$DistributionGroups = Get-DistributionGroup -ResultSize Unlimited For more information on working with Exchange Online using PowerShell, refer to the post: How to Connect to Exchange Online using PowerShell?Ĭonnect-ExchangeOnline -ShowBanner:$False Keep in mind that you will need to have the Exchange Online PowerShell module installed and have permission to access Exchange Online in order to use the Get-DistributionGroupMember cmdlet.

This PowerShell script Connects to Exchange Online, retrieves the distribution group members, selects their display names and primary SMTP addresses, Recipient Type, and exports them to a CSV file in the specified path.

Let’s see how to export distribution group members to CSV using PowerShell in Office 365. PowerShell to Export distribution list members to CSV You can also use the Exchange Admin Center to do the same.īut wait a minute! Where is the member information in the exported file? Well, the Admin center export doesn’t provide members of each group, But it just gives the group information. to and will be saved in the Downloads folder, containing all the details of the distribution groups. The exports a CSV file with distribution group attributes like Group ID, Name, Alias, Primary SMTP Address, Group Alias, etc. From the Toolbar, click on “Export groups in this list”.


How to Export Distribution Group Members to CSV in Office 365? Requirement: Export Office 365 distribution list members to CSV.
