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

OpenTechTips

Short Guides for IT Professionals

MENUMENU
  • HOME
  • ALL TOPICS
    • Active Directory
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Virtualization
    • Web
    • Tools
  • ABOUT
  • SUBSCRIBE
Home » How to Set Primary SMTP in Exchange Online – M365

How to Set Primary SMTP in Exchange Online – M365

May 19, 2022 - by Zsolt Agoston - last edited on May 19, 2022

In Exchange Online (or M365) the Set-Mailbox -PrimarySmtpAddress cmdlet doesn't work anymore. Use the -WindowsEmailAddress parameter instead.

Example

The objective is to change the primary SMTP address for our user Alice from alice@protectigate.com to alice.schmidt@protectigate.com

1. Open a PowerShell session to Exchange Online.
2. Run the following cmdlet to set the primary address for Alice:

Set-Mailbox alice@protectigate.com -WindowsEmailAddress alice.schmidt@protectigate.com

Reader Interactions

Community Questions Cancel reply

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

Primary Sidebar

Tools

Secondary Sidebar

  • Terms of Use
  • Disclaimer
  • Privacy Policy