Change email address

Roger Roger 7,181 Reputation points
2024-09-16T22:28:06.2933333+00:00

Hi All,

I have a booking mailbox, let's say its email address is ******@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 ******@contoso.onmicrosoft.com to ******@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 ******@contoso.onmicrosoft.com as a secondary email address.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Other
Exchange Exchange Server Management
Exchange Hybrid management
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    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 "******@contoso.onmicrosoft.com" -PrimarySmtpAddress "******@contoso.com"
    

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

    Set-Mailbox -Identity "******@contoso.com" -EmailAddresses @{add="******@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 ******@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

4 additional answers

Sort by: Most helpful
  1. Amit Singh 5,306 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 ******@contoso.onmicrosoft.com -PrimarySmtpAddress @contoso.com -EmailAddresses @{add="@contoso.onmicrosoft.com"}

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

    Let me know if you any query in above steps.

     

    0 comments No comments

  2. Roger Roger 7,181 Reputation points
    2024-09-18T04:04:10.74+00:00

    I am getting below error

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

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

    At line:1 char:59

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

  3. Roger Roger 7,181 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.


  4. Roger Roger 7,181 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 ******@contoso.onmicrosoft.com. it has been 24 hours. it is possible to change upn from ******@contoso.onmicrosoft.com to ******@contoso.com. please guide me.

    Set-Mailbox -Identity @contoso.onmicrosoft.com -EmailAddresses "SMTP:@contoso.com","smtp:******@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.