computerName = (get-childitem -path Env:ComputerName).Value; $hubDefaultConnector = get-receiveconnector -Server $RoleFqdnOrName ...

$computerName = (get-childitem -path Env:ComputerName).Value;                    $hubDefaultConnector = get-receiveconnector -Server $RoleFqdnOrName -DomainController $RoleDomainController | where {$_.Identity -eq "$computerName\Default $computerName" -and $_.TransportRole -eq "HubTransport"};                    if ($hubDefaultConnector -eq $null)                    {                        Write-ExchangeSetupLog -Error "Default hub receive connector is not found";                    }                    else                    {                        if (-not [String]::IsNullOrEmpty($RoleDatacenterReceiveConnectorConnectionTimeout))                        {                          set-ReceiveConnector $hubDefaultConnector `                              -PermissionGroups:"ExchangeServers, ExchangeLegacyServers, AnonymousUsers" `                              -MessageRateLimit:unlimited `                              -MessageRateSource:"IPAddress" `                              -MaxInboundConnectionPerSource:200 `                              -ProtocolLoggingLevel:verbose `                              -MaxMessageSize:$RoleDatacenterConnectorMaxMessageSize `                              -TarpitInterval:00:00:01 `                              -ConnectionTimeout:$RoleDatacenterReceiveConnectorConnectionTimeout `                              -DomainController $RoleDomainController                        }                        else                        {                          set-ReceiveConnector $hubDefaultConnector `                              -PermissionGroups:"ExchangeServers, ExchangeLegacyServers, AnonymousUsers" `                              -MessageRateLimit:unlimited `                              -MessageRateSource:"IPAddress" `                              -MaxInboundConnectionPerSource:200 `                              -ProtocolLoggingLevel:verbose `                              -MaxMessageSize:$RoleDatacenterConnectorMaxMessageSize `                              -TarpitInterval:00:00:01 `                              -DomainController $RoleDomainController                        }                    }
English
English (United States)
Français (France)
French (France)