Enumerate IIS Class Members
You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.
Example(s)
strComputer = "LocalHost" Set objIIS = GetObject("IIS://" & strComputer & "/W3SVC") For Each objItem in objIIS If objItem.class = "IIsWebServer" Then Wscript.Echo objItem.Name End If Next Wscript.Echo Set objIIS = GetObject("IIS://" & strComputer & "/MSFTPSVC") For Each objItem in objIIS If objItem.class = "IIsFtpServer" Then Wscript.Echo objItem.Name End If Next Wscript.Echo Set objIIS = GetObject("IIS://" & strComputer & "/NNTPSVC") For Each objItem in objIIS If objItem.class = "IIsNntpServer" Then Wscript.Echo objItem.Name End If Next Wscript.Echo Set objIIS = GetObject("IIS://" & strComputer & "/SMTPSVC") For Each objItem in objIIS If objItem.class = "IIsSmtpServer" Then Wscript.Echo objItem.Name End If Next