Commands › Exchange Online

Set-RoutingGroupConnector

Exchange Online ExchangeOnlineManagement Set-*

Modify the properties of an existing routing group connector between a Microsoft Exchange Server 2010 routing group and an Exchange Server 2003 routing group. You can also use this cmdlet to configure the maximum message size that can pass across a routing group connector.

Quick start script

# Set-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)
Set-RoutingGroupConnector -Identity <RoutingGroupConnectorIdParameter> -WhatIf
Set-RoutingGroupConnector -Identity <RoutingGroupConnectorIdParameter>

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

Syntax

Set-RoutingGroupConnector [-Identity] <RoutingGroupConnectorIdParameter>
 [-Confirm]
 [-Cost <Int32>]
 [-DomainController <Fqdn>]
 [-MaxMessageSize <Unlimited>]
 [-Name <String>]
 [-PublicFolderReferralsEnabled <Boolean>]
 [-SourceTransportServers <MultiValuedProperty>]
 [-TargetTransportServers <MultiValuedProperty>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-Identity RoutingGroupConnectorIdParameter yes The Identity parameter specifies the name or GUID of the routing group connector. The name is expressed as [[Administrative Group Name\\]Routing Group Name]\\Routing Group Connector Name.
-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.
-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...
-MaxMessageSize Unlimited The MaxMessageSize parameter specifies the maximum size of a message that can pass through a routing group connector. The default value is unlimited. When you enter a value, qualify the value with one of the following units:
-Name String The Name parameter specifies the name of the routing group connector.
-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...
-SourceTransportServers MultiValuedProperty The SourceTransportServers parameter specifies the host name or FQDN of the transport servers that are used to send messages to the target transport servers. You can specify more than one server by separating each...
-TargetTransportServers MultiValuedProperty 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...
-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.