Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, here's the problem: I have to configure Connection Control IIS virtual SMTP server on Windows Server 2003, to be exact, which IP addresses can use the server. So, I run IIS Manager, open SMTP Virtual Server Properties, open Access tag, click on Connection Control -> Add... And I can only add a single IP address, or a range, or a domain. And I have a lot of addresses to add, so adding single IP addresses is not efficient, and for other reasons I can't add range or a domain.
Is there any way (be it an application, editing text files or running a batch script, or writing myself a C++/C# application) to mass add these addresses?
I'd be very grateful if someone could help me with that!

share|improve this question

migrated from Aug 22 '11 at 12:15

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

The IP address restrictions are held in the IPSecurity property of the IIS Metabase.

As for modifying this programatically, this page looks like it may help you out:, specifically the bit under the heading "Import IP Security.vbs" looks like it ought to be a good starting point.

share|improve this answer
Thanks, that was exactly what I needed! – user905747 Aug 25 '11 at 18:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.