Get Distribution Group Using Exchange Online PowerShell

Indeed, You can use Get Distribution group using exchange online PowerShell to see complete list of distribution groups. In fact, you can use Get-Distribution cmdlet lists information about distribution groups and mail-enabled security groups.

How To Get Distribution Group

Specifically, You can use Get-Distribution cmdlet for- distribution groups but to view the members of a group, use Get-DistributionGroupMember cmdlet. Further, you can use the Get-DistributionGroup cmdlet to get distribution groups using Exchange Online PowerShell. Here are the steps to do this:

1. Connect to Exchange Online

Firstly, You need to connect Exchange Online using PowerShell before you can run any command.

2. Get the Distribution Group

Now, Once you’re connected, you can use the Get-DistributionGroup cmdlet to retrieve information about a specific distribution group.

This cmdlet is available in on-premises Exchange and in the cloud-based service.

Get-DistributionGroup

You can use the command above to list all distribution groups and mail-enabled security groups in exchange online.

Get-DistributionGroup -Identity "Marketing"

Now, You can see -Identify parameter to get basic information about marketing group. This will return name, display name, group type and primary smtp address of the group.

Get-DistributionGroup -Identity "Marketing" | Format-List

You can find detailed information about Marketing group with the command above.

Share

You may also like...