Update IPs on Receive Connectors

by Nuno Mota [Published on 9 May 2012 / Last Updated on 20 April 2012]

How to easily add or remove IP addresses from Receive Connectors across all HUB servers.

If you have multiple HUB servers and ever had to update one or more IP addresses from a custom Receive Connector, you know how much work it is involved. Especially if you have to do this often.

If this is your case, here’s how you can easily remove (or add) IPs from a receive connector across all your HUB servers:

 

# Get Receive Connectors to update

$recCons= Get-ReceiveConnector | Where {$_.Name -match"Unauthenticated SMTP"}

ForEach ($recConin$recCons)

{

      Write-Host"Updating", $recCon.Identity

       $recCon.RemoteIPRanges -="10.101.74.10"

      $recCon.RemoteIPRanges -="10.102.34.12"

       Set-ReceiveConnector $recCon -RemoteIPRanges $recCon.RemoteIPRanges

}

See Also


See Also

Featured Links