Chat with us, powered by LiveChat

Blog

Back

Adding Multiple Email Addresses to a Distribution List in Office 365

5 Jun 2012 by Emma Robinson

The other day I was trying to give several email addresses to a Distribution List in a P1 tenant on Office 365. I wanted one distribution list that acted as the owner of sales@mycompany.com and accounts@mycompany.com. No matter how hard I looked in the Exchange Control Panel, I just couldn’t find the option to do it through the web interface. Maybe it’s there and I missed it… but I found it easier and faster to just do it through Powershell.

For the purposes of this demo, I created a test distribution list (DL). You can see in the screenshot that it only allows you to specify one email address.

Read more Office 365 scripting workshop

Create new Distribution List

Create new Distribution List

Once the DL has been created, there also doesn’t seem to be an option to add new email aliases – you can only see the ones that are already there.

Distribution List Email Options

Distribution List Email Options

To add new aliases, we fire up Powershell and connect to Office 365.

With one simple cmdlet, we can add as many email addresses as we want.
PS C:\> Set-DistributionGroup test -emailaddresses @{Add='test@doorstamp.com','test1@doorstamp.com','test2@doorstamp.com'}

Now we can see all the email addresses we added when we take a look at the DL in the Exchange Control Panel.

Distribution List with additional email addresses

Distribution List with additional email addresses

Now, what about if we want to remove an email address from a Distribution Group?