Chat with us, powered by LiveChat

Blog

Back

Removing an Email Address from a Distribution Group in Office 365

24 Oct 2012 by Emma Robinson

We previously wrote a blog post on adding multiple email addresses to a Distribution Group in Office 365.
A visitor then asked a great question in the comments section – How do we remove an address from a Distribution Group?
Luckily, this is now easier than it ever was!
We start off, as usual, by using Powershell to connect to Office 365.
First, we check out what email addresses this Distribution Group has attached to it.

PS C:\> Get-DistributionGroup newsletter | select emailaddresses
EmailAddresses
--------------
{SMTP:newsletter2@cogmotive.com, smtp:test2@doorstamp.com}
PS C:\>

For this example, we will be removing the email address test2@doorstamp.com without affecting the other email addresses using the following command.

Set-DistributionGroup newsletter -EmailAddresses @{Remove='test2@doorstamp.com'}

Finally, we check the distribution list to make sure the email addresses look how we expect!

PS C:\> Get-DistributionGroup newsletter2 | select emailaddresses
EmailAddresses
--------------
{SMTP:newsletter2@cogmotive.com}
PS C:\>