One thing that often happens when migrating an exchange server is having to replicate some receiving connectors (for example, some relays for the internal network). Often these connectors are configured to respond to tens or even hundreds of ip addresses. Now… bringing them back by hand is a nerve-wracking and time-consuming job.
The simplest solution is to create the new connector and then export and import the list of IP addresses using these two commands
Export:
$ip_list = (Get-ReceiveConnector “OldServerNameConnector name”).RemoteIPRanges
Import:
Set-ReceiveConnector -identity “NewServerNameConnector name” -RemoteIPRanges $ip_list
Obviously, only the ip addresses are reported in this way, all other configurations concerning the connector must be done by hand.