Forum Discussion
Move mailbox contents to another mailbox
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 ).
https://learn.microsoft.com/en-us/powershell/module/exchange/new-compliancesearch?view=exchange-ps
https://learn.microsoft.com/en-us/microsoft-365/compliance/use-network-upload-to-import-pst-files?view=o365-worldwide
Wish you a nice day 🙂
- badsectorJan 18, 2023Brass 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.- FcoManigrassoJan 18, 2023Iron 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.
https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailboxrestorerequest?view=exchange-ps
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 🙂
- badsectorJan 19, 2023Brass ContributorYes, New-MailboxRestoreRequest should work. I've used this before and it works. The problem is that I have to deliberately put a working mailbox in a "softdeleted" state. And I won't do this, unless I have exported the contents as .pst files as a backup. Exactly what I want to skip. It's unbelievable that there's no a simple solution with clicking buttons on a GUI for such an extremely trivial task.