For my lab, I often have to recreate the Exchange Hybrid configuration for a fresh setup of Exchange On-Premises using formerly used namespaces. Normally you would just run the Exchange Hybrid Configuration Wizard (HCW) after configuring certificates and endpoint URLs. If you donât clean up the previous configuration information from your tenant upfront, you may then run in the following error message when running the HCW:
Updating hybrid configuration failed with error â’Subtask Configure execution failed: Configure IntraOrganization Connector Execution of the Get-IntraOrganizationConfiguration cmdlet has thrown an exception. This may indicate invalid parameters in your hybrid configuration settings. Multiple OnPremises configuration objects were found. Please use the OrganizationGuid parameter to select a specific OnPremises configuration object.
Multiple OnPremises configuration objects indicates there are multiple intra-organization objects defined in your tenant. You can clean up previous intra-organization configuration objects from your tenant as follows:
- First, in your Exchange On-Premises environment, run the Get-OrganizationConfig cmdlet from the Exchange Management Shell:

- Copy the Guid value, in the example 1a95d446-ff56-4399-a95e-8ab46c30912b.
- Connect to Exchange Online (instruction here).
- Check the existing On-Premises definitions in your tenant by running Get-OnPremisesOrganization. There should be more than 1 entry.
- To remove the orphaned objects, remove all the objects that donât match the Organization Guid you retrieved from your On-Premises environment earlier, e.g.:Get-OnPremisesOrganization | Where { $_.OrganizationGuid âne â1a95d446-ff56-4399-a95e-8ab46c30912bâ } | Remove-OnPremisesOrganization

- Now you could try re-running the HCW immediately, but chances are you will run in another error caused by orphaned intra-organization connectors (IOC). In those cases, when the HCW tries to run New-IntraOrganizationConnector, it will fail as the namespace defined by TargetAddressDomains is already in use by an existing connector, and âThe domain <domain> already exists in another intra-organization connectorâ is reported. Those connectors, named âHybridIOC â â, where GUID is the Guid of previously used organizations, exist in your tenant. In your Exchange Online session, run the following cmdlet to remove orphaned connector definitions:Get-IntraOrganizationConnector | Where { $_.Identity âne âHybridIOC – 1a95d446-ff56-4399-a95e-8ab46c30912bâ } | Remove-IntraOrganizationConnector

- While you’re at it, you also might want to remove previously created connectors. Again, in your Exchange Online session, run the following cmdlets to remove orphaned inbound and outbound connectors (again, using the previously noted Organization GUID):
Get-OutboundConnector | Where { $_.Identity âne âOutbound to 1a95d446-ff56-4399-a95e-8ab46c30912bâ } | Remove-OutboundConnector
Get-InboundConnector | Where { $_.Identity âne âInbound from 1a95d446-ff56-4399-a95e-8ab46c30912bâ } | Remove-InboundConnector
After removing these orphaned objects, you should be able to run the HCW succesfully.


![Exchange-2010-Logo-733341[1]](https://eightwone.com/wp-content/uploads/2009/11/exchange-2010-logo-7333411.png?w=150&h=71)