Hey everyone! I'm usually used to Avepoint Fly for migrations, but this time I'm trying to use Microsoft's native migration tools to move from one tenant to another. The tricky part is that the Exchange GUID needs to be the same for each user in both the source and the new tenant. I'm testing it with a single user on each end, but no matter what PowerShell command I use, like `Set-MailUser "test.user" -ExchangeGuid 152fd87b-6178-4517-8658-640aaa5fd2c9`, it fails with an error saying the user can't be found on the server. I can retrieve details from `Get-Mailbox test.user@?????.com | select Name, ExchangeGuid`, though. I'm using PowerShell for Exchange Online. Any suggestions?
1 Answer
Have you confirmed that you have the necessary licenses for the native migration? Sometimes those features are limited to specific agreements, but if you've got that sorted, then let’s check a few things. The output from `Get-Mailbox` indicates you're working with a mailbox user instead of a mail user. If that's the case, you might need to unlicense the user and run the `Set-User -PermanentlyClearPreviousMailboxInfo` command. Just a heads-up: this action can't be undone. If there's any soft-deleted mailbox linked to that user, it won’t be recoverable once you've cleared it. Once that’s done, you should be able to sync the correct Exchange GUID for the target object. You might find more details in the migration guide [here](https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide&source=recommendations).

Thanks for the tip! I had the licenses, but after reading your advice, I removed the license, cleared the previous mailbox info, and recreated the user. However, I’m still getting an error about the migration user type not being correct. I deleted the test user, recreated it through PowerShell, and tried again, but I'm stuck on this migration user type issue. What am I missing?