Hi Joe,
This example lists all websites and the IP addresses associated with the
website. By using the example, you should be able to figure out how to do
what you want to do.
<a rel="nofollow" style='text-decoration: none;' href="http://www.iisfaq.com/Default.aspx?tabid=2766" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2766</a>
I can also recommend this link, with many other examples:
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/technet/scriptcenter/scripts/iis/default.mspx" target="_blank">http://www.microsoft.com/technet/scriptcenter/scripts/iis/default.mspx</a>
--
Regards,
Kristofer Gafvert
<a rel="nofollow" style='text-decoration: none;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a rel="nofollow" style='text-decoration: none;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>
Joe Zammit wrote:
> Hi All
>
> I have been playing with the WMI Service objects and want to check if a
> website exists on the server. I can loop through the virtual directories
> using the "IIsWebVirtualDir", but cannot find a way of looping through
the
> websites (I have tried IIsWebServiceSetting, but can't seem to list the
> websites, just the W3SVS object).
> Does anyone know how to do this?
>
> Any help on this topic and general administration of IIS with VBScript
would
> be very useful.
> Thanx
> Joe
>> Stay informed about: List Websites with VBScript