Oct 09 2019 10:47 AM
User was created cloud-only (with a enterprise E3 licence) a long time ago and therefor has a cloud mailbox. Months later, Azure AD Sync and Hybrid Mode have been set up. The user also has a mailbox in the local on premises Exchange. Login name and email address are the same: userx@contoso.com. The account should now be migrated to the cloud. How can I ensure that the cloud mailbox remains intact during the migration and that the on premises mailbox is deleted?
Oct 09 2019 11:53 AM
Hi @Robert K ,
Has this user's account been synced with Azure AD Connect, or are there two different accounts (one cloud/one on-prem) that need to be merged? I know there are several ways to set up conflict resolution and attribute matching in an AADC hybrid scenario, so the steps to accomplish this would differ significantly depending upon the state of the account(s).
Oct 09 2019 12:25 PM
@Adrienne Andrews "two different accounts (one cloud/one on-prem) that need to be merged" is correct.
Oct 09 2019 07:39 PM
Sep 15 2022 12:10 AM - edited Sep 15 2022 12:12 AM
Run these command on you On-Prem Exchange Server
Disable-Mailbox -identity "userx"
Result:
Disabling mailbox "userx" will remove the Exchange properties from the Active Directory user object and markthe mailbox in the database for removal. If the mailbox has an archive or remote archive, the archive will also bemarked for removal. In the case of remote archives, this action is permanent. You can't reconnect this user to the remote archive again.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): A
Then this command :
Enable-RemoteMailbox "userx" -RemoteRoutingAddress "userx @ contoso.mail.onmicrosoft...."
Result will be like this
Name RecipientTypeDetails RemoteRecipientType
---- -------------------- -------------------
Userx RemoteUserMailbox ProvisionMailbox