• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Tachytelic.net

  • Sco Openserver
    • Sco Unix Support
    • SCO Openserver Installation ISOs
    • SCO Openserver Binaries
    • Add a Hard Drive to an Openserver 5 Virtual Machine
    • Install SCO Vision SQL-Retriever ODBC Driver on Windows 10
    • License Expired on Virtual SCO Openserver Installation
    • How to reset the root password on SCO Openserver 5
  • Scripting
    • PowerShell
      • Add leading zeros
      • Check if a File Exists
      • Grep with Powershell
      • Create Environment Variables
      • Test for open Ports
      • Append to a Text File
    • VBScript
      • Check if a File Exists
      • lpad and rpad functions
      • Windows Update E-Mail Notification
  • Office 365
    • Connect to Office 365 with PowerShell
    • Add or remove an email alias using Powershell
    • Change Primary email address of Active Directory user
    • How to hide an AD user from the Global Address List
    • How to hide mail contacts from the Global Address List
    • Change the primary email address for an account with PowerShell
    • Change Primary email address of an AD User
    • Grant a single user access to access to all calendars
    • Forward email to an external address using Powershell
    • Convert shared mailbox to user mailbox with Powershell
  • Get in Touch
  • About Me
    • Privacy Policy

Office 365: How to add or remove an email alias using Powershell

December 19, 2018 by Paulie 4 Comments

Use the Powershell cmdlet Set-Mailbox to check email aliases assigned to Office 365 accounts, add aliases or remove aliases. Additionally the handy form underneath will generate the correct Powershell commands for you.

Check current email aliases assigned to an Office 365 account:

Get-Mailbox mailboxName | select -ExpandProperty emailaddresses | Select-String -Pattern "smtp"

Add an email alias to an Office 365 account:

Set-Mailbox mailboxName -EmailAddresses @{Add='[email protected]'}

Remove an email alias from an Office 365 account:

Set-Mailbox MailboxName -EmailAddresses @{Remove=’[email protected]’}

Or you can just use the form below and the required Powershell will be generated for you….

Now that you have got multiple email aliases, here is how to configure Outloook so that you can send from an alias.

Related

Filed Under: How To, Office 365 Tagged With: Exchange, Office 365, Powershell

Reader Interactions

Comments

  1. Luke says

    August 20, 2019 at 3:07 pm

    I would just like to know how you built this input/output area for the commands on this page. I want to create something like this on my SharePoint site for quick reference and deployment. If you could communicate directly via email that would be greatly appreciated.

  2. Paulie says

    August 20, 2019 at 6:00 pm

    It’s just a bit of jQuery – you can copy the source right off this page.

  3. Pablo says

    October 30, 2019 at 2:17 pm

    The recipe is missing something, maybe it’s obvious for people used to PowerShell but it was not for me; For this to work I had to do this first, in the PS prompt:

    Install-Module MSOnline
    Import-Module MSOnline

Trackbacks

  1. How to send from an alias using Outlook 2016 on Office 365 says:
    December 19, 2018 at 8:32 pm

    […] The idea behind this method is to setup a second account in Outlook that will enable us to send from an alias that has been defined in Office 365 for a user. It would really be better if the ability to send from an alias was native to Outlook/Office 365, but it isn’t. See these instructions for how to add an alias with Powershell. […]

Leave a Reply Cancel reply

Primary Sidebar

Link to my LinkedIn Profile
Go to mobile version