When using the Office365 admin panel, you can only add a single email address to a mail contact.

If you want to add multiple addresses, you have to use PowerShell. Use the following set of commands to add and confirm these addresses.

    1. To connect powershell to Office 365, perform the following;
    2. Open powershell
    3. Type the following command;

$Cred = Get-Credential

    1. Enter the username / password of a valid O365 admin account
    2. Type the following command;

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/
-Credential $Cred -Authentication Basic –AllowRedirection

    1. Type the following commands;

Import-PSSession $Session

    1. Powershell is now attached to Office365 Exchange and we can run the command to add addresses to the mail contact. The primary address should have uppercase SMTP: prepended – there can be only one uppercase entry for a specific address type.
    2. set-mailcontact "User Name" -EmailAddresses "SMTP:primary.email@domain.com","smtp:secondary.email@domain.com"
    3. To confirm this has worked run the following command

get-mailcontact "User Name" | select -ExpandProperty EmailAddresses

Leave a Reply

Your email address will not be published. Required fields are marked *