Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Aug 22 '11 at 12:15

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

1 Answer 1

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: http://obligatorymoniker.wordpress.com/2009/06/03/technique-to-change-any-iis-6-properties-programatically/, 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

 
discard

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.