I came across a particularly useful set of commands today while needing to enter a huge list of allowed IP’s for a receive connector in Exchange on multiple servers. This comes in particularly handy when needing to copy allowed IP addresses from one connector to another (usually on multiple servers) for the purpose of say anonymous relaying.
$connector = Get-ReceiveConnector “ServerName\ConnectorName”
Set-ReceiveConnector “ServerName\ConnectorName” –RemoteIPRanges $connector.RemoteIPRanges
Very simple set of commands used frequently in Powershell, just thought this one was particularly useful as we have additional addresses to add and subtract from anonymous relaying connectors on mutliple servers frequently.