Re: Vbscript IIS Properties
From: Andrey P (andrey_at_paramonov.pp.ru)
Date: 04/27/04
- Next message: Jacqueline Jaynes [MSFT]: "RE: HTTP Error 401.5 - Unauthorized: Authorization failed by an ISAPI/CGI application."
- Previous message: Andrey P: "Re: Strange problem when I Site is SSL enable"
- In reply to: LouWho: "Vbscript IIS Properties"
- Next in thread: LouWho: "RE: Vbscript IIS Properties"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Apr 2004 10:14:13 -0700
LouWho wrote:
> Hello
>
> I am a Vb,(5\6\net\Vbwscript), person, but new to IIS.
>
> If I go into the Internet Services Manager MMC, and I right click on one of the virtual directories, and then select properties, I can see, and modify the properties. How to access, and change, those properties in vbscript, or any VB product, (no ASP involved)?
>
> What I want to do is to deny Access to particular IP Addresses. I understand that because I am on a win 2000 system that I have to use ADSI instead of WMI, (because WMI is for IIS 6, win2003)
>
> Is there a "createobject" command that will give me some kind of intellisense related to the IIS API?
>
> When I do the following...
>
> set vdirObj=getobject("IIS://localhost/W3svc/1/root/VDirName")
> wscript.echo vdirobj.path
>
> ...it does not know the property 'Path'. Where is there documentation that will tell me what the property names are, (equate the IIS admin properties\virtual directory tab\local path text box, to path or whatever)?
>
> Are there any samples anywhere?
>
> Thanks
>
> Lou
This link may be helpful:
http://www.iisfaq.com/Default.aspx?tabid=2967
For more info:
http://www.iisfaq.com/Default.aspx?tabid=2538
-Andrey
- Next message: Jacqueline Jaynes [MSFT]: "RE: HTTP Error 401.5 - Unauthorized: Authorization failed by an ISAPI/CGI application."
- Previous message: Andrey P: "Re: Strange problem when I Site is SSL enable"
- In reply to: LouWho: "Vbscript IIS Properties"
- Next in thread: LouWho: "RE: Vbscript IIS Properties"
- Messages sorted by: [ date ] [ thread ]