Copy Receive Connectors from one Exchange Server to another
When doing migration creating new Exchange Receive Connectors that has alot of IP Addresses.
Doing this manually is a pain! But there is a command we can use to accomplish this
CAS1 is the server that I will copy the Receive Connector and CAS2 the new server and name of receive connector is “my connector” where I will create the same connector as showing on the CAS1:
New-ReceiveConnector “my connector” -Server CAS2 -Bindings 0.0.0.0:25 -RemoteIPRanges ( Get-ReceiveConnector “CAS1\my connector” ).RemoteIPRanges