Commands › Exchange Online

New-IntraOrganizationConnector

Exchange Online ExchangeOnlineManagement New-*

Create an Intra-Organization connector between two on-premises Exchange forests in an organization, between an Exchange on-premises organization and an Exchange Online organization, or between two Exchange Online organizations. This connector enables feature availability and service connectivity across the organizations using a common connector and connection endpoints.

Quick start script

# New-IntraOrganizationConnector — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-IntraOrganizationConnector
$before | Format-List

# 3. Make the change (dry run first)
New-IntraOrganizationConnector -Name <String> -DiscoveryEndpoint <Uri> -TargetAddressDomains <MultiValuedProperty> -WhatIf
New-IntraOrganizationConnector -Name <String> -DiscoveryEndpoint <Uri> -TargetAddressDomains <MultiValuedProperty>

# 4. Verify and diff
$after = Get-IntraOrganizationConnector
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-IntraOrganizationConnector [-Name] <String> -DiscoveryEndpoint <Uri> -TargetAddressDomains <MultiValuedProperty>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Enabled <Boolean>]
 [-TargetSharingEpr <Uri>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Name String yes The Name parameter specifies a friendly name for the Intra-Organization connector. If the value contains spaces, enclose the value in double quotation marks.
-DiscoveryEndpoint Uri yes The DiscoveryEndpoint parameter specifies the externally-accessible URL that's used for the Autodiscover service for the domain that's configured in the Intra-Organization connector.
-TargetAddressDomains MultiValuedProperty yes The TargetAddressDomains parameter specifies the domain namespaces to use in the Intra-organization connector. These domains must have valid Autodiscover endpoints defined in their organizations. The domains and...
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Enabled Boolean The Enabled parameter enables or disabled the Intra-organization connector. The valid values for this parameter are $true or $false. The default value is $true.
-TargetSharingEpr Uri This parameter is available only in the cloud-based service.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.