Forum Discussion
badsector
Jan 18, 2023Brass Contributor
Move mailbox contents to another mailbox
I have two mailboxes in Exchange Online. I want to move all the contents from one mailbox to the other. I tried using Outlook to do this, but things happen way too slow and Outlook crashes frequently. Both mailboxes have archives. The total amount that has to be moved is around 90GB. I tried using Search-Mailbox just on couple of items as a test and it worked. But I got a message that this cmdlet is retired. As well as New-MailboxSearch. So what is the Microsoft's way to do this simple task?
- FcoManigrassoIron Contributor
Hi badsector ,
There're many ways to do that, ( one of them is what you already tried ). But let me ask a question...
Why move the content to another mailbox instead to rename/modify the existing one?
Other point... You say that both mailboxes are online... But is your environemnt only EXO or do you have a hybrid one? ( In I hybrid one I'll have more ideas ).
For only EXO, I would say that the better solution would be to create a New-ComplianceSearch, export the PST and import it to the new mailbox, ( you'll need AzCopy ).
New-ComplianceSearch (ExchangePowerShell) | Microsoft Learn
Use network upload to import PST files - Microsoft Purview (compliance) | Microsoft Learn
Wish you a nice day 🙂
- badsectorBrass ContributorHi FcoManigrasso,
The mailbox, that is currently being used by the end user, has a user account in a local AD. The one that needs to be migrated, is only in AzureAD. Besides both mailboxes have emails in them. We do have hybrid configuration and can move mailboxes from Exchange Online to Exchange Server. But will that do any good? In Exchange Server I can use New-MailboxExportRequest to export the contents to three .pst files. But I can do the same with New-ComplianceSearch. Is the former better than the latter? I was hoping that there's an easier way to do such a trivial task. Tossing huge .pst-s is anything but convenient. I don't even have that much free space on my computer.- FcoManigrassoIron Contributor
Hi badsector,
I was thinking about a New-MailboxRestoreRequest to the destination mailbox. ( I never did it that way but it should work ). So, softdelete the source mailbox and then restore it to the target one.
New-MailboxRestoreRequest (ExchangePowerShell) | Microsoft Learn
In your scenario, I would proceed with the Compliance search, ( it's a lot more effort but more secure from my point of view ). But again, it's up to you and there're the options 🙂