Copying Receive Connectors (update) | EighTwOne (821)

Copying Receive Connectors (update)

[…]Once in a while you may have to execute a task so tedious and repetitive, you end up with an idea for a script to make your life easier. By tidying and publishing that script, I hope to make the life of others easier to. This is one of those scripts.

When implementing Hub Transport servers on Exchange 2010, you may have to configure multiple receive connectors. Because receive connectors are defined on the Hub Transport server itself, contrary to send connectors, you may end up defining each receive connector on each Hub Transport server. This gets painful when you need to implement the ForeFront Online Protection for Exchange servers in the Remote IP ranges for example.

Yes, you can create a script which configures the connectors for you, but wouldn’t it be nice if you can create definitions on one server using the GUI and then just copy and paste those definitions to the other Hub Transport servers? This script also allows you to simply duplicate existing Receive Connector definitions after adding an additional Hub Transport server afterwards, not only after the initial configuration of the Exchange environment.

Here’s were my Copy-ReceiveConnector.ps1 script may come in handy.

The script is quite simple, and can help you with the following:

* Copy Receive Connectors from one Exchange server to another (CopyFrom);
* 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.


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


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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Mandie's Memos

Learning about Lync and other technologies the hard way... so you don't have to.

The Networking Nerd

Networking With A Side of Snark

Norwegian Lync Day

For de som vil mer med Lync

Exchange Goddess

I'm here for the refreshments. About cows, goats, and surviving in IT as a woman

A bit of Exchange & Office 365

Blog of an Exchange Microsoft Certified Master & MVP


The World of Lync 2010 & Lync 2013

The Lync

Tom Kisner's Microsoft Unified Communications Blog

Technical blog about Exchange, OCS, Lync and Skype for Business by Ståle Hansen


An another Exchange fellow !!!


All about messaging (and maybe some other stuff too). (Lync and Skype for Business)

Follow on Twitter @WeakestLync #Lync #Skype4B

Unified Blog

Focused on Unified Communications & Collaboration

UC Skype for Business?

Sunny skies with a chance of Clouds.

Chad McGreanor's Blog

Engineers Notebook

Thoughtsofanidlemind's Blog

Exchange, Office 365, technology, and anything else really...

Working Hard In IT

My view on IT from the trenches

Steve Goodman's Exchange & Office 365 Blog

The weblog of an Microsoft MVP and IT Pro specialising in Exchange, Lync, Office 365. Guides, Tutorials, How-Tos and commentary.

Ehlo World!

All about Microsoft Unified Communications

Michael 'Van Hybrid' / Van Horenbeeck

My personal trash of thoughts about Unified Communications and stuff

Cloudy Migration Life

Blog for Active Directory and Exchange migration projects. Insights into Active Directory Federation Services and Web Application Server.


Get every new post delivered to your Inbox.

Join 1,666 other followers

%d bloggers like this: