Want to know how to fix a 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 troubleshooting steps to resolve the error. I researched on the internet and followed some steps but in vain. Fortunately, I fixed it using the following steps.
I would suggest checking 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 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 test123@techieberry.onmicrosoft.com

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.
Worked perfectly, appreciate it
I’m glad I could help 🙂
Great work, thank you!!!
Thank you. I’m so glad I could be of assistance.