Wanting to know on how to solve failed to disable the mailbox due to a conflict in directory settings in Microsoft 365 mailbox? You’re in the right place.
I noticed the same error message on a user account and I was not sure the the troubleshooting steps to resolve the error. I researched on the internet and followed some steps but in vain. Fortunately, I fixed it using the the following steps.
I recommend to check the recipient type of the affected mailbox in Exchange Online. To do this, connect to Exchange online PowerShell and execute the command.
Get-Recipient “Mailbox Name” | fl RecipientType
Great, the recipient type is user mailbox. Let’s go ahead and export the mailbox content as a pst file and disable the mailbox in on-premises.
To disable the mailbox, connect to Exchange on-premises PowerShell and execute the command.
Disable-mailbox “Mailbox Name” -Confirm:$false
Allow for a few hours to reflect the changes in cloud. Once it is synced, enable the on-premises object but the recipient type should be a remote user mailbox. The command to enable the remote mailbox is below.
Enable-RemoteMailbox “test248” -RemoteRoutingAddress firstname.lastname@example.org
Wait for the changes to reflect in cloud and assign the Exchange Online license to the user account and check the status.
The failed to disable the mailbox due to a conflict in directory settings message has disappeared now. Finally, import the pst to the user mailbox.
Now It’s Your Turn:
Did I miss anything? Or maybe you have a question about something that I covered.
Either way, I’d like to hear from you. So go ahead and leave a comment below.