Add Multiple Alias Email Addresses to Exchange Online/Office 365 Mailbox
I will keep the BS short for this one BUT there are a few points to mention. Please read as it will save you time in the long run!
Being an absolute 1337 n00b myself, I originally ran through the process to add additional email aliases to the mailbox. Unbeknownst to me at the time, running through this process completely overwrites what is associated with the mailbox. So, my advice? Create the entire Set-Mailbox string for all email addresses before starting the process.
Anyway, onto the process!
If you want to add multiple alias email addresses to an Exchange Online/Office 365 account run through the following:
- When running through this process you MUST specify ALL email addresses that are to be associated with the mailbox you are updating
- It will overwrite anything that currently exists within the Email Addresses section
- When specifying the email addresses be sure to pay attention to SMTP and smtp
Being an absolute 1337 n00b myself, I originally ran through the process to add additional email aliases to the mailbox. Unbeknownst to me at the time, running through this process completely overwrites what is associated with the mailbox. So, my advice? Create the entire Set-Mailbox string for all email addresses before starting the process.
Anyway, onto the process!
If you want to add multiple alias email addresses to an Exchange Online/Office 365 account run through the following:
- Open Powershell
- Type the following command:
- Enter username & password of your Exchange Online/Office 365 account
- Type the following command:
- Type the following command:
- Run the following command to populate your account with the relevant email addresses:
$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
Set-Mailbox “[Mailboxes Alias Name]” -EmailAddresses “SMTP:[Primary Email Address]”,”smtp:[Additional Email Address #1]”,”smtp:[Additional Email Address #2]”
NOTE: Be sure to note the difference between SMTP and smtp!
SMTP = The primary email address of the account; there can only be one
smtp = All secondary email addresses
Example
The example below I am updating a shared mailbox called "info". This mailbox will have a main SMTP address of info@ with 2 additional email addresses connected to the mailbox:
Example
The example below I am updating a shared mailbox called "info". This mailbox will have a main SMTP address of info@ with 2 additional email addresses connected to the mailbox:
Set-Mailbox “info” -EmailAddresses “SMTP:info@dcmcdfixes.net”,”smtp:1337n00b@dcmcdfixes.net”,”smtp:CutTheBSAndShowMeTheFix@dcmcdfixes.net”
Comments
Post a Comment