View Full Version : Help with IIS

05-28-2004, 12:35 PM
Hi, all.
I have the next VB script :

Set IISOBJ = getObject("IIS://LocalHost/W3SVC")
IISOBJ.Filter = "IIsWebServer"
For each Object in IISOBJ
if (Object.Class = "IIsWebServer") then
WScript.Echo "WWW Site: " & Object.Name & " - " & Object.ServerComment
end if

I try to do the same in install script, but it have no "For Each" statement. Please if anybody know, how to do this - help me.

Thanks a lot.