Re: automating IP Address Access Restrictions

From: Ming Lu[MS] (minglu@online.microsoft.com)
Date: 10/02/02


From: "Ming Lu[MS]" <minglu@online.microsoft.com>
Date: Wed, 2 Oct 2002 12:09:57 -0700


You can try IIS ADSI object IIsIPSecurity to automate IP restriction
setting. Please see IIS doc for details.

-Ming

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Kevin Masterson" <kevin_masterson@ncci.com> wrote in message
news:ec8d01c2698a$118705a0$39ef2ecf@TKMSFTNGXA08...
> Hello,
> I am having some difficulty automating the settings for
> IP Address Access Restrictions in IIS using a vb script. I
> can set almost every other property for the web servers,
> but am getting a schema error when trying to set the
> IPSecurity property for a virtual application. below is
> the code I am using. it sets the defaultdoc property but
> error out on the IPSecurity setting. can you tell me what
> I need to do to get this setting automated?
> Thank,
> Kevin Masterson
>
>
> set strNetwork = CreateObject("wscript.Network")
> if not (err.number = 0) then
>   errsub()
>   wscript.quit
> end if
>
> strComputerName = strNetwork.computername
>
>
> strMetaPathName = "IIS://" & strComputerName
> & "/W3SVC/2/Root/DQI"
> wscript.echo " MetaPath is: " &strMetaPathName
> '**********************************************************
> ******
>
> set objWebSvc = GetObject(strMetaPathName)
>  if (err.number <> 0) then
>    errsub()
>  end if
>
> objWebSvc.DefaultDoc = "home.asp"
> objWebSvc.IPSecurity = "18 00 00 80 20 00 00 80 3C 00 00
> 80 44 00 00 80 01 00 00 00 4C 00 00 00 00 00 00 00 00 00
> 00 00 01 00 00 00 02 00 00 00 02 00 00 00 03 00 00 00 04
> 00 00 00 00 00 00 00 4C 00 00 80 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 FF FF FF FF 00 00 00 00 AC 14 A2
> 18 "
>
> objWebSvc.SetInfo
>
>


Relevant Pages

  • Re: automating IP Address Access Restrictions
    ... >You can try IIS ADSI object IIsIPSecurity to automate IP ... Please see IIS doc for details. ... >> IPSecurity property for a virtual application. ... >> errsub() ...
    (microsoft.public.inetserver.iis.security)
  • Using Web Setup Project
    ... I want to automate the process of deploying my web application completely. ... The project tries to create virtual directories under the default web site ... want to put my physical directory path in a different place? ... to go to IIS mgr to do this I what the setup to do it automatically. ...
    (microsoft.public.dotnet.general)
  • Automate IIS setup
    ... hey, I'm curious to know if there is a way to automate the setup of IIS, what ... not is there somewhere that i predefined settings so that if i'm not there to ...
    (microsoft.public.inetserver.iis)
  • Re: Automate IIS setup
    ... >i mean by automate is that I want my IIS to setup it's settings and options ... >not is there somewhere that i predefined settings so that if i'm not there to ... >setup IIS, ...
    (microsoft.public.inetserver.iis)