Bulk add IP addresses to a Receive Connector…
Note: I wrote this back in January 2012, but I got rid of my Wordpress site and wanted to move it over to Medium. It still gets a crap load of hits so thought I’d include it again.
If you’ve ever had to manually enter a large number of IP addresses into a Receive Connector in Exchange you’ll know how annoyingly boring this is. Fortunately, for you there is a much easier way.
First, add all the IP addresses to a text file called list.txt
Then use the following PowerShell to add them in bulk: