Doppelte Empfangsconnector (Receive Connector) in Exchange 2013 auf den anderen Server

Doppelte Empfangsconnector (Receive Connector) in Exchange 2013 auf den anderen Server

Während bisher meine Exchange-Infrastruktur erstreckt und zu modifizieren, wurde ich brauchte Receive Connectors von einem Server auf einen anderen zu kopieren. Ich schrieb ein einfaches Template-Skript für diese Aufgabe.

Zunächst holen Sie das Objekt bestehender Empfangsconnector:

[PS] C:\Windows\system32>Get-ReceiveConnector -Server exch14

Identity                                Bindings                                Enabled
--------                                --------                                -------
EXCH14\Default Frontend EXCH14          {10.0.0.1:25}                       True
EXCH14\Default EXCH14                   {0.0.0.0:2525, [::]:2525}               True
EXCH14\Client Proxy EXCH14              {[::]:465, 0.0.0.0:465}                 True
EXCH14\Client Frontend EXCH14           {[::]:587, 0.0.0.0:587}                 True
EXCH14\Outbound Proxy Frontend EXCH14   {[::]:717, 0.0.0.0:717}                 True
EXCH14\SAP vHost Power Notifications    {0.0.0.0:25}                            True
EXCH14\Certificate Sending from scripts {0.0.0.0:25}                            True


[PS] C:\Windows\system32>$a = Get-ReceiveConnector -Server exch14

Angenommen, wir brauchen "EXCH14\SAP vHost Power Notifications" Anschluss zu duplizieren, das Element #5 in Array $a:

[PS] C:\Windows\system32>$a[5]

Identity                                Bindings                                Enabled
--------                                --------                                -------
EXCH14\SAP vHost Power Notifications    {0.0.0.0:25}                            True

Jetzt können wir die Variable für den neuen Servernamen gesetzt und führen Cmdlet Empfangsconnector in Exchange 2013 zu kopieren:

$NewServer = "new-server";

$a[5] | foreach {
New-ReceiveConnector –TransportRole $_.TransportRole -Name $_.Name -RemoteIPRanges $_.RemoteIPRanges -bindings $_.Bindings -Banner $_.Banner -ChunkingEnabled $_.ChunkingEnabled -DefaultDomain $_.DefaultDomain -DeliveryStatusNotificationEnabled $_.DeliveryStatusNotificationEnabled -EightBitMimeEnabled $_.EightBitMimeEnabled -DomainSecureEnabled $_.DomainSecureEnabled  -LongAddressesEnabled $_.LongAddressesEnabled -OrarEnabled $_.OrarEnabled -Comment $_.Comment -Enabled $_.Enabled -ConnectionTimeout $_.ConnectionTimeout -ConnectionInactivityTimeout $_.ConnectionInactivityTimeout -MessageRateLimit $_.MessageRateLimit -MaxInboundConnection $_.MaxInboundConnection -MaxInboundConnectionPerSource $_.MaxInboundConnectionPerSource -MaxInboundConnectionPercentagePerSource $_.MaxInboundConnectionPercentagePerSource -MaxHeaderSize $_.MaxHeaderSize -MaxHopCount $_.MaxHopCount -MaxLocalHopCount $_.MaxLocalHopCount -MaxLogonFailures $_.MaxLogonFailures -MaxMessageSize $_.MaxMessageSize -MaxProtocolErrors $_.MaxProtocolErrors -MaxRecipientsPerMessage $_.MaxRecipientsPerMessage -PermissionGroups $_.PermissionGroups -PipeliningEnabled $_.PipeLiningEnabled -ProtocolLoggingLevel $_.ProtocolLoggingLevel -RequireEHLODomain $_.RequireEHLODomain -RequireTLS $_.RequireTLS -EnableAuthGSSAPI $_.EnableAuthGSSAPI -ExtendedProtectionPolicy $_.ExtendedProtectionPolicy -SizeEnabled $_.SizeEnabled -TarpitInterval $_.TarpitInterval -Server $NewServer
}

Das ist es.

 

exchange (de), exchange 2013 (de)

  • Zugriffe: 2155
Kommentar schreiben

Related Articles