Commands › Exchange Online

Add-DistributionGroupMember

Exchange Online ExchangeOnlineManagement Add-*

Add a single recipient to distribution groups and mail-enabled security groups. To replace all members, use the Update-DistributionGroupMember cmdlet.

Quick start script

# Add-DistributionGroupMember — 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
Add-DistributionGroupMember -Identity <DistributionGroupIdParameter> | Format-List

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

Syntax

Add-DistributionGroupMember [-Identity] <DistributionGroupIdParameter>
 [-BypassSecurityGroupManagerCheck]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Member <RecipientWithAdUserGroupIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Identity DistributionGroupIdParameter yes The Identity parameter specifies the group that you want to modify. You can use any value that uniquely identifies the group. For example:
-BypassSecurityGroupManagerCheck SwitchParameter The BypassSecurityGroupManagerCheck switch specifies whether to allow a user who isn't an owner of the group to modify or delete the group. You don't need to specify a value with this switch.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Member RecipientWithAdUserGroupIdParameter The Member parameter specifies the recipient that you want to add to the group. A member can be any mail-enabled recipient in your organization. You can use any value that uniquely identifies the recipient. For example:
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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