Menu Close

[SOLVED] Failed To Disable The Mailbox Due To a Conflict In Directory Settings (2023)

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.

Failed to disable the mailbox due to a conflict in directory settings

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

office 365 mailbox

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

microsoft office 365

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

outlook office 365

Wait for the changes to reflect in cloud and assign the Exchange Online license to the user account and check the status.

microsoft office 365

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.

Related Posts

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *