Commands › Exchange Online

New-RoutingGroupConnector

Exchange Online ExchangeOnlineManagement New-*

Establish a connection between a Microsoft Exchange Server 2010 routing group and an Exchange Server 2003 routing group when the organization is running more than one version of Exchange.

Quick start script

# New-RoutingGroupConnector — 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-RoutingGroupConnector
$before | Format-List

# 3. Make the change (dry run first)
New-RoutingGroupConnector -Name <String> -SourceTransportServers <MultiValuedProperty> -TargetTransportServers <MultiValuedProperty> -WhatIf
New-RoutingGroupConnector -Name <String> -SourceTransportServers <MultiValuedProperty> -TargetTransportServers <MultiValuedProperty>

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

Syntax

New-RoutingGroupConnector [-Name] <String> -SourceTransportServers <MultiValuedProperty> -TargetTransportServers <MultiValuedProperty>
 [-BiDirectional <Boolean>]
 [-Confirm]
 [-Cost <Int32>]
 [-DomainController <Fqdn>]
 [-PublicFolderReferralsEnabled <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-Name String yes The Name parameter specifies the name to assign to the routing group connector.
-SourceTransportServers MultiValuedProperty yes The SourceTransportServers parameter specifies the host name or fully qualified domain name (FQDN) of the transport servers used to send messages to the target transport servers. You can specify more than one server...
-TargetTransportServers MultiValuedProperty yes The TargetTransportServers parameter specifies the host name or FQDN of the transport servers that receive messages from the source transport servers. You can specify more than one server by separating each entry...
-BiDirectional Boolean The BiDirectional parameter specifies whether this is a one-way or two-way connector. The default value is $false.
-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.
-Cost Int32 The Cost parameter specifies a cost to the connector. Transport servers use the connector cost to determine the least cost routing path from a source server to the destination server for message delivery. The default...
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-PublicFolderReferralsEnabled Boolean The PublicFolderReferralsEnabled parameter specifies whether users can use this routing group connector to access a public folder replica located in the routing group of the target servers when an instance of that...
-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.