Commands › Exchange Online

Get-DynamicDistributionGroupMember

Exchange Online ExchangeOnlineManagement Get-*

View the calculated membership list that's stored on dynamic distribution group objects. The results from this cmdlet are updated every 24 hours. Use the Get-DistributionGroupMember cmdlet to view the members of distribution groups and mail-enabled security groups.

Quick start script

# Get-DynamicDistributionGroupMember — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-DynamicDistributionGroupMember -Identity <DynamicDistributionGroupMemberIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-DynamicDistributionGroupMember | Export-Clixml .\DynamicDistributionGroupMember-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-DynamicDistributionGroupMember [-Identity] <DynamicDistributionGroupMemberIdParameter>
 [-Credential <PSCredential>]
 [-IncludeSoftDeletedObjects]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity DynamicDistributionGroupMemberIdParameter yes The Identity parameter specifies the dynamic distribution group. You can use any value that uniquely identifies the group. For example:
-Credential PSCredential The Credential parameter specifies the username and password that's used to run this command. Typically, you use this parameter in scripts or when you need to provide different credentials that have the required permissions.
-IncludeSoftDeletedObjects SwitchParameter The IncludeSoftDeletedGroups switch specifies whether to include soft-deleted group members in the results. You don't need to specify a value with this switch.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.