Office 365 - Change all emails to first.lastname@domain but keep the login email

sil4-1439 6 Reputation points
2021-03-08T08:41:15.66+00:00

Hi Guys,

we have around 1500 mailboxes on Office365 and the Company asked us to Change all Email Address to:
Firstname.lastname@keyman .com BUT we need to keep the Login Email the same so it wont cause disconnection on all outlooks

I've been trying to find the proper PS script online but couldn't found one that matches the office365

would love to get some help on this one

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,185 questions
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
    2021-03-08T11:22:39.877+00:00

    First things first - are those users provisioned directly in the cloud or being synchronized from AD/external system? In the latter scenario, you will need to make the changes there and wait for sync to happen.
    If they are managed directly in Azure AD, you can use the following cmdlet:

    Set-Mailbox ******@domain.com -WindowsEmailAddress ******@domain.com  
    

    The above will add new@keyman .com as the current primary SMTP address, while keeping the old one as secondary address, and is the easier way to make this change in O365. You can run this in bulk based off a CSV file or just directly leverage the firstname/lastname values for each user. Here's an example for the former:
    https://social.technet.microsoft.com/Forums/msonline/en-US/66165391-1bb9-4925-a2e7-fbe701654b00/bulk-change-primary-smtp?forum=onlineservicesexchange

    1 person found this answer helpful.

  2. Rich Matheisen 47,901 Reputation points
    2021-03-08T20:16:30.36+00:00

    You only need to change the Exchange Email Address Policy for your organization. Exchange will preserve the current email addresses for each mailbox as a secondary SMTP proxy address and change the primary SMTP address as per the policy that's applicable to the mailbox-enabled or mail-enabled objects.


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.