Exchange 2013 – Listar os IPs cadastrados para um Receive Connector

Esse script deve ser executado no Exchange Management Shell para cadastrar IPs em um Receive Connector:

$RecvConn = $Null
$RecvConn = Get-ReceiveConnector "<SERVERNAME\Receive Connector Name>"
Get-Content <Path_to_Ip_list.txt> | foreach {$RecvConn.RemoteIPRanges += "$_"}
Set-ReceiveConnector "<SERVERNAME\Receive Connector Name>" -RemoteIPRanges $RecvConn.RemoteIPRanges