|
Home > Archive > IIS Server > July 2004 > script to add/remove IP address restrictions?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
script to add/remove IP address restrictions?
|
|
|
| Hi,
Does anyone know of or have a script (wscript, adsi etc) to add/remove IP
address restrictions for a particular IIS 5.0 website?
I have looked around played with adsutil.vbs etc but cannot find anything or
am looking in wrong place.
If not a script, how about any sample code that gets to those nodes to get
going?
thanks!
| |
| Kyle Terns [MSFT] 2004-07-29, 5:55 pm |
| The property that holds the IP restriction list in IIS is called
IPSecurity. You might have noticed the below error when enumerating the
metabase using adsutil.vbs.
DataType: "IPSec" Not Yet Supported on property: IPSecurity
This error occurs because adsutil.vbs is not able to handle binary
properties. Below is an article from MSDN that explains how to create a
script using ADSI to manipulate the IP restriction list.
http://msdn.microsoft.com/library/d...-us/iissdk/iis/
setting_ip_security_in_the_metabase.asp
Hope this helps!
Kyle Terns, MCSD [MSFT]
Developer Support - IIS
***********************[vbcol=seagreen]
account name for newsgroup participation only.<<
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
© 2003 Microsoft Corporation. All rights reserved.
***********************
--------------------
| From: "aaz" <aaz@webcapacity.com>
| Subject: script to add/remove IP address restrictions?
| Date: Wed, 28 Jul 2004 09:45:48 -0600
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <OZPT2nLdEHA.1764@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.inetserver.iis
| NNTP-Posting-Host: 65.121.33.254
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.inetserver.iis:314657
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| Hi,
| Does anyone know of or have a script (wscript, adsi etc) to add/remove IP
| address restrictions for a particular IIS 5.0 website?
| I have looked around played with adsutil.vbs etc but cannot find anything
or
| am looking in wrong place.
|
| If not a script, how about any sample code that gets to those nodes to get
| going?
|
| thanks!
|
|
|
|
|
|
|
|