Forum Discussion
Roger Roger
Apr 04, 2019Iron Contributor
How to Merge Exchange Online mailbox
Hi All
I have an office365 user who left the company 3 months back,his mailbox is still active his email is
user1@contoso.com and the same user has joined the company back and we have created a new mailbox for him and the name of the mailbox is user2@contoso.com.
Is it possible to merge both the mailboxes, i.e we only want user2@contoso.com, we want user1@contoso.com mails to be merged with user2@contoso.com ie. all the mails of user1@contoso.com to be merged with user2@contoso.com and user1@contoso.com should not exist and user2@contoso.com should have all the emails of user1@contoso.com without loosing.
Using mailbox search can help, however all the copied items will be placed in a parent folder and you will loose the folder structure. EWS is the best option here, for example this script: https://code.msdn.microsoft.com/office/PowerShell-Merge-mailbox-e769c529
That's assuming you want to use an "admin" solution, otherwise simply do the "merge" by copying the items in Outlook.
- StasxpulseCopper ContributorHi,
Can someone share this script, URL is dead and pointed to nowhere. Or share via email: Stas.xpulse@gmail.com
Thanks- RichardMSFT
Microsoft
The script description and link is now found at https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/wiki/Merge-MailboxFolders.ps1
- See here to use powershell to merge the mailbox:
https://www.neroblanco.co.uk/2018/10/merging-two-office-365-mailboxes/
Of course if you need the mail for more like a archive you could also convert to a shared mailbox and give full permissions to the user! The user could also copy over content! Same with a pst export/import