Add/Remove Distribution Group Delivery Restrictions

Modified on Wed, 18 Sep, 2024 at 12:40 PM

Requirements

Exchange Online powershell module


Connect-ExchangeOnline


To view current delivery restrictions


Get-DistributionGroup [email protected]

or

Get-DynamicDistributionGroup

Example:



To add members:

Set-DistributionGroup 

or

Set-DynamicDistributionGroup

Example:

Set-DynamicDistributionGroup avastaff -AcceptMessagesOnlyFromSendersOrMembers @{Add="[email protected]"}


For adding multiple members:

@{Add="[email protected]","[email protected]"}


To remove, simply replace @{Add with @{Remove

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article