Skip to main content

When all the mailboxes are in Exchange Online, and all the SMTP relay goes directly from the devices and applications to Office 365, we can remove the Exchange Hybrid Configuration. After that, keep only one Exchange Server for management purposes. In this article, you will learn how to delete Exchange Hybrid

Remove Hybrid Configuration

Remove the Hybrid Configuration object from Active Directory to prevent the Hybrid Configuration from being recreated in the future.

Run Exchange Management Shell as administrator. Next, run the Remove-HybridConfiguration cmdlet.

[PS] C:\>Remove-HybridConfiguration -Confirm:$false

Verify that the Hybrid Configuration is successfully removed. Run the Get-HybridConfiguration cmdlet, and the output will be empty.

[PS] C:\>Get-HybridConfiguration

Disable OAuth configuration

You have to disable OAuth from both on-premises and Microsoft 365.

Run Exchange Management Shell as administrator and run the below command to disable OAuth configuration from on-premises.

[PS] C:\>Get-IntraOrganizationConnector | Set-IntraOrganizationConnector -Enabled $false

Verify that OAuth is disabled from on-premises with the Get-IntraOrganizationConnector cmdlet. The Enabled column will show as False.

[PS] C:\>Get-IntraOrganizationConnector | Format-Table Name,Enabled,TargetAddressDomains

Name                                             Enabled TargetAddressDomains
----                                             ------- --------------------
HybridIOC - 5635832e-d272-46fa-8161-7bfcdfc9aaa2   False {exoip365.mail.onmicrosoft.com}

Run Windows PowerShell as administrator and  connect to Exchange Online PowerShell .

PS C:\> Connect-ExchangeOnline

Run the below command to disable OAuth configuration from Microsoft 365.

PS C:\> Get-IntraOrganizationConnector | Set-IntraOrganizationConnector -Enabled $false

Verify that OAuth is disabled from Microsoft 365 with the Get-IntraOrganizationConnector cmdlet. The Enabled column will show as False.

PS C:\> Get-IntraOrganizationConnector | Format-Table Name,Enabled,TargetAddressDomains

Name                                             Enabled TargetAddressDomains
----                                             ------- --------------------
HybridIOC - 25ed1cea-670f-45c3-854e-e3a1d0a4651c   False {exoip.com}

Remove connectors in Exchange Online

The Hybrid Configuration Wizard created inbound and outbound connectors in Exchange Online. Follow the below steps to delete the connectors in Exchange Online:

  • Sign in to Microsoft 365 Exchange admin center
  • Expand Mail flow and click on Connectors
  • Delete the connectors named Inbound from <unique identifier> and Outbound to <unique identifier>
Remove Exchange Hybrid Configuration remove connectors

Remove organization relationship in Exchange Online

The Hybrid Configuration Wizard created an organization relationship. Follow the below steps to delete the organization relationship in Exchange Online:

Remove Exchange Hybrid Configuration remove organization relationship

Remove send connector in Exchange on-premises

The Hybrid Configuration Wizard  created an outbound connector in Exchange on-premises. Follow the below steps to delete the send connector in Exchange on-premises:

  • Sign in to Exchange admin center
  • Expand mail flow and click on send connectors
  • Delete the outbound connector named Outbound to Office 365 – <unique identifier>
Remove Exchange Hybrid Configuration remove send connector

You can remove all the Exchange on-premises send connectors. That’s because the Exchange Server will not send emails anymore. Instead, the SMTP relay goes through Office 365 directly from the devices and applications.

Keep Exchange Hybrid deployment

Leave the Exchange Hybrid Deployment feature enabled in Azure AD Connect.

Remove Exchange Hybrid Configuration Exchange Hybrid Deployment

You successfully did remove Exchange Hybrid Configuration.

Leave a Reply