Change email address

Roger Roger 5,751 Reputation points
2024-09-16T22:28:06.2933333+00:00

Hi All,

I have a booking mailbox, let's say its email address is bm@contoso.onmicrosoft.com. One of my users utilizes this booking mailbox and has scheduled numerous invites to external users. I have a requirement to change the booking mailbox's email address from bm@contoso.onmicrosoft.com to bm@contoso.com. Will there be any impact on the previously scheduled invites if I make this change?

Please guide me on how to change the booking mailbox email address from powershell, and let me know if it's possible to set bm@contoso.onmicrosoft.com as a secondary email address.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,267 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,493 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,606 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,076 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Xintao Qiao-MSFT 2,745 Reputation points Microsoft Vendor
    2024-09-17T05:47:03.9866667+00:00

    Hi, @Roger Roger

    When you change the primary email address of your booking mailbox, the previously scheduled invitation is usually still valid. These invitations are usually associated with the mailbox itself, rather than a specific email address. However, it is best to notify external users of this change to avoid any confusion.

    In Exchange on-premises, you can use the following command in Power Shell to modify the primary email address of a mailbox.

    Set-Mailbox -Identity "bm@contoso.onmicrosoft.com" -PrimarySmtpAddress "bm@contoso.com"
    

    You can then set up the secondary email address using the following command.

    Set-Mailbox -Identity "bm@contoso.com" -EmailAddresses @{add="bm@contoso.onmicrosoft.com"}
    

    In Exchange Online, you can manage the email address in the EAC.

    1.Select the mailbox you want to modify, and select "Manage email address types"

    User's image

    2.Select "Add email address type"

    User's image

    3.Enter the bm@contoso.com and check "Set as primary email address", click Save and the old email address will automatically become a secondary email address.

    User's image

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  2. Amit Singh 4,896 Reputation points
    2024-09-17T06:27:20.3133333+00:00

    When you change the email address, the previously schedule invites will not be affected because the mailbox is still same, only the email address changes.

    Follow the PowerShell commands to change the email address-

    1.       Connect to Exchange Online Connect-ExchangeOnline

    2.       Add the new Primary email address Set-Mailbox -Identity bm@contoso.onmicrosoft.com -PrimarySmtpAddress bm@contoso.com -EmailAddresses @{add="bm@contoso.onmicrosoft.com"}

    3.       After this you can verify by running the command Get-Mailbox -Identity bm@contoso.com | Select-Object PrimarySmtpAddress, EmailAddresses

    Let me know if you any query in above steps.

     

    0 comments No comments

  3. Roger Roger 5,751 Reputation points
    2024-09-18T04:04:10.74+00:00

    I am getting below error

    PS C:\windows\system32> Set-Mailbox -Identity bm@contoso.onmicrosoft.com -PrimarySmtpAddress bm@contoso.com

    Set-Mailbox : A parameter cannot be found that matches parameter name 'PrimarySmtpAddress'.

    At line:1 char:59

    • ... ntity bm@contoso.onmicrosoft.com -PrimarySmtpAddress bm ...
      • CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
      • FullyQualifiedErrorId : NamedParameterNotFound,Set-Mailbox

  4. Roger Roger 5,751 Reputation points
    2024-09-18T05:36:46.52+00:00

    i can see the booking mailbox in M365 Admin center not Exchange Admin center. is this expected behaviour.


  5. Roger Roger 5,751 Reputation points
    2024-09-19T06:55:45.0066667+00:00

    using the below syntax i have changed the email address but still booking mailbox invites are going with bm@contoso.onmicrosoft.com. it has been 24 hours. it is possible to change upn from bm@contoso.onmicrosoft.com to bm@contoso.com. please guide me.

    Set-Mailbox -Identity bm@contoso.onmicrosoft.com -EmailAddresses "SMTP:bm@contoso.com","smtp:bm@contoso.onmicrosoft.com"


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.