Direct Inward Dialing: +1 408 916 9393
Distribution groups (also called distribution lists) let you send email to multiple recipients through a single address. When a message is sent to the group, Exchange Online delivers it to every member. This guide walks through three ways to create a distribution group: using the New-DistributionGroup cmdlet in Exchange Online PowerShell, using the Exchange Admin Center, and using ADManager Plus.
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName admin@zylker.com
New-DistributionGroup -Name "Marketing" -Alias "marketing" -PrimarySmtpAddress "marketing@zylker.com"
Get-DistributionGroup -Identity "Marketing" | Select-Object Name, PrimarySmtpAddress, GroupType
For on-premises Exchange Server (2013, 2016, 2019, or SE), run New-DistributionGroup from the Exchange Management Shell on the Exchange server. The cmdlet syntax and parameters are the same; you do not need to install the ExchangeOnlineManagement module or run Connect-ExchangeOnline.
To create a group that can both receive email and have permissions assigned to it, set -Type to Security:
New-DistributionGroup -Name "Managers" -Alias "managers" -PrimarySmtpAddress "managers@zylker.com" -Type Security
Creating a mail-enabled security group requires the Security Group Creation and Membership role, which is assigned to Organization Management by default but not to Recipient Management. An account with only the Recipient Management role cannot run this command.
To restrict membership changes and allow email from outside your organization in the same command, set -MemberJoinRestriction and -RequireSenderAuthenticationEnabled together:
New-DistributionGroup -Name "AllStaff" -Alias "allstaff" `
-PrimarySmtpAddress "allstaff@zylker.com" `
-ManagedBy "admin@zylker.com" `
-MemberJoinRestriction Closed `
-RequireSenderAuthenticationEnabled $false
Prepare a CSV with Name, Alias, and PrimarySmtpAddress columns, one row per group, then pipe it through a loop:
Import-Csv "C:\Groups\groups.csv" | ForEach-Object {
New-DistributionGroup -Name $_.Name `
-Alias $_.Alias `
-PrimarySmtpAddress $_.PrimarySmtpAddress
}
| Parameter | Description |
|---|---|
| -Name | The unique name of the group. The maximum length is 64 characters. It is mandatory to provide the name when creating a Distribution group. |
| -Alias | The Exchange alias (mail nickname) used to generate the primary email address if -PrimarySmtpAddress is not set. |
| -Type | The group type: Distribution (default, email-only) or Security (email plus permission assignment). |
| -PrimarySmtpAddress | The primary SMTP email address for the group. |
| -DisplayName | The display name visible in the Exchange Admin Center and address lists. Defaults to the -Name value if omitted. |
| -ManagedBy | The owner or owners of the group, specified by UPN, email address, alias, or distinguished name. |
| -Members | Recipients to add as members at creation. Members can also be added after creation with Add-DistributionGroupMember. |
| -MemberJoinRestriction | Controls how users can join the group: Open, Closed (default), or ApprovalRequired. |
| -MemberDepartRestriction | Controls how members can leave the group: Open (default for distribution groups) or Closed. |
| -ModerationEnabled | Whether messages require moderator approval before delivery. Defaults to $false. |
| -ModeratedBy | The moderator(s) who approve messages when -ModerationEnabled is $true. |
| -RequireSenderAuthenticationEnabled | Whether only authenticated (internal) senders can email the group. Defaults to $true. Set to $false to accept external email. |
| -Notes | Additional descriptive information about the group. |
| -OrganizationalUnit | The OU where the group object is created in Active Directory. |
The Exchange Admin Center (EAC) provides a point-and-click wizard for creating a distribution group in Exchange Online without any scripting.
ADManager Plus is a web-based management tool for AD, Exchange, and Microsoft 365 that creates Exchange Online distribution groups through a guided interface, with no scripting required.
To provision multiple groups at once:
The CSV supports one group per row. The only mandatory column is Name. Optional columns include Alias, PrimarySmtpAddress, DisplayName, Members, ManagedBy, ModerationEnabled, ModeratedBy, MemberJoinRestriction, MemberDepartRestriction, RequireSenderAuthenticationEnabled, SendModerationNotifications, and BypassNestedModerationEnabled.
The ExchangeOnlineManagement module is not installed or was not imported in the current session. Install it with Install-Module -Name ExchangeOnlineManagement, then run Import-Module ExchangeOnlineManagement before connecting. If the module is already installed but the cmdlet is still not recognized, verify that you are running PowerShell 5.1 or PowerShell 7.
The connecting account is not a member of the Organization Management or Recipient Management role group in Exchange Online. Assign the correct role through the Microsoft 365 admin center under Roles, or ask your Exchange administrator to confirm the account's delegated permissions before retrying.
The -Name value and the primary SMTP address must each be unique across all recipients in the Exchange Online tenant. Run Get-DistributionGroup to locate the existing object, then either reuse it or choose a different name and address for the new group.
New-DistributionGroup sets -RequireSenderAuthenticationEnabled to $true by default, which rejects email from unauthenticated (external) senders. To allow external email, add -RequireSenderAuthenticationEnabled $false to the New-DistributionGroup command at creation, or update the setting on an existing group:
Set-DistributionGroup -Identity "Marketing" -RequireSenderAuthenticationEnabled $false
ADManager Plus is a unified management and reporting tool for AD, Exchange, and Microsoft 365. Distribution group creation is part of a broader Exchange Online management capability that removes the need for scripting or maintaining multiple admin consoles.
A distribution group is a mail-enabled group object in Exchange Online that routes email sent to a single address to all of its members. Unlike mail-enabled security groups, distribution groups cannot be used to assign permissions to resources such as mailboxes or file shares. They are created and managed through Exchange Online PowerShell or the Exchange Admin Center, and the underlying object is stored in Active Directory.
Both are created with New-DistributionGroup, with the group type controlled by the -Type parameter. A distribution group (-Type Distribution, the default) routes email only and cannot be used for permission assignments. A mail-enabled security group (-Type Security) routes email and can also be assigned permissions to resources, making it the right choice when you need both capabilities from the same group object.
Yes. Combine New-DistributionGroup with Import-Csv and a ForEach-Object loop. The CSV must contain a Name column. ADManager Plus also supports bulk distribution group creation from the same CSV format through the GUI, without any scripting.
New-DistributionGroup sets -RequireSenderAuthenticationEnabled to $true by default, which accepts messages only from authenticated (internal) senders and rejects all external email. Add -RequireSenderAuthenticationEnabled $false to the New-DistributionGroup command at creation, or run Set-DistributionGroup on the existing group to change the setting. In the EAC, the equivalent option is in the group's Settings tab under Delivery management.
The cmdlet is available in both Exchange Online and on-premises Exchange (2013, 2016, 2019, and SE). For Exchange Online, you need the ExchangeOnlineManagement module and a Connect-ExchangeOnline session. For on-premises Exchange, run New-DistributionGroup directly in the Exchange Management Shell on the Exchange server. The cmdlet syntax and parameters are the same in both environments.