Mar 26 2023 04:17 AM - edited Mar 26 2023 04:35 AM
Hello There,
I would like to know if there is a way to mass-migrate Online Exchange users to our local exchange (hybrid) while keeping the same GUID and bypassing users that already exist on the on-prem.
So far we have been creating users in Active Directory directly which means that no mailbox is created.
We do have a hybrid model and by adding a microsoft license to the user (in our case all users get the E3 one) a mailbox for the user is created on the Online Exchange.
There are around 500 users on the online exchange and 100+ on the local exchange (hybrid, exist on both).
The plan was to decomission the local exchange and thus the users were created directly on the online exchange, but as you are all aware plans change.
The powershell cmdlets that we use to migrate users individually are the following:
1) 365 - Powershell cmdlet
Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons #{Connects to EXO}
Get-Mailbox email address removed for privacy reasons | fl ExchangeGuid ---- #{Get Online GUID for Johny}
2) On-Prem Local exchange - Powershell cmdlet
Enable-RemoteMailbox t.johny -RemoteRoutingAddress email address removed for privacy reasons
#{Creates a remote mailbox on the on-prem exchange}
Set-RemoteMailbox t.johny -ExchangeGuid c3a72578-9de8-498f-b347g-d154746924547
#{Sets the same GUID as in online Exchange}
Any idea how we can replicate this for all users bypassing the ones that already exist?
Mar 26 2023 12:22 PM
You can use the remote move migration wizard in the EAC in Exchange Online to move existing cloud mailboxes to the on-premises Exchange organization:
Reference the article : Move mailboxes between on-premises and Exchange Online organizations in hybrid deployments | Microso...
If I have answered your question, please mark your post as Solved If you like my response, please give it a Like Appreciate your Kudos! Proud to contribute! :) |
Mar 26 2023 02:49 PM