Wednesday, May 4, 2016

Quick Retrieval of Remote IP Ranges on Receive Connectors

Hi folks,

As you well know that you can you can control list of hosts that can send to an Exchange server by maintaining RemoteIpRanges attribute of the receive connector. You can add and remove IP addresses to/from this attribute and I have already spoke about it in some of my previous posts.

Sometimes the number of IP addresses in the RemoteIpRanges can be too long so that when you type Get-ReceiveConnector |fl RemoteIpRanges some of the IP addresses are not displayed.

Below is a short code that allows us to see all the IP addresses no matter how long is the list of them:

Get-ReceiveConnector ConnectorName |select -ExpandProperty RemoteIpRanges |select Expression |sort Expression

I hope this will be helpful to you.