* Export Receive Connector definitions to an XML file (ExportTo);
* Import Receive Connector definitions from an XML file (ImportFrom). In addition, you can specify whether you want to overwrite existing Receive Connector definitions (based on name) using the -Overwrite switch or clear all existing Receive Connectors before copying/importing using the -Clear switch. So, let’s say you have two Hub Transport servers, L12EX1 and L12EX2. You have configured L12EX1 and you need to create the same set of receive connectors on L12EX2. [image] You can see in the example above, you can use the script to copy definitions from an existing server, e.g. Copy-ReceiveConnector.ps1 –CopyFrom You can also export and import settings, which may come in handy when you need to troubleshoot (you can have the customer export the receive connectors to a file) or when you want to prepare receive connector definitions off-site, e.g. Copy-ReceiveConnector.ps1 –ExportTo .\conn.xml Copy-ReceiveConnector.ps1 –ImportFrom .\conn.xml –Clear [image] Note that when ExchangeServer is specified as AuthMechanism on a receive connector, the FQDN needs to be set to the server’s FQDN, NetBIOS name or $null; in such cases I set it to the FQDN of the target server. Also, it uses the existing name, meaning you may need to rename the Default and Client connectors, which contain the server name, afterwards. Update 24th August, 2012 (v1.1): Added find/replace in Receive Connector name so that “Default L12EX1″ on server L12EX1 will become or match with “Default L12EX2″ on server L12EX2. Click here to download the script from the Technet Gallery. Like this:
Be the first to like this.