Welcome to HostingForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

List Websites with VBScript

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Web Quotas  
Author Message
Joe Zammit

External


Since: Mar 15, 2005
Posts: 3



(Msg. 1) Posted: Wed Mar 16, 2005 11:35 am
Post subject: List Websites with VBScript
Archived from groups: microsoft>public>inetserver>iis (more info?)

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 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 2) Posted: Wed Mar 16, 2005 11:35 am
Post subject: Re: List Websites with VBScript [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to list the virtual directory with vbscript? - I'd like to use WMI or other scripting methods to list what Virtual Directory/Appliation the IIS currently hosting? Is it possible to do it in Windows 2000/iis5? -- ÁÙ§Ú¥»¦â ...

Getting a list of Virtual Directories for IIS 5 with VBScr.. - At the company I work for we utilize ADSI scripts (.vbs) to programmatically configure the IIS metabase. .NET Framework 2 and WMI are currently not viable options with our architecture. I am currently tasked with developing a script that will..

List all WebSites - How to list (I assuming using ADSI) all web sites on machine (including virtual pathes of them)? -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "

IIS and vbscript - I am writing a vbscript program to query IIS 5.0 servers for security attribute information among other things. I would like to run this program from a Windows NT or Windows 2000 workstation. Do I have to have IIS installed on the workstation in order....

VBScript under IIS6.0 - Hi everyone! I've been browsing Web Server Talk for an answer to my problem, but I've only found some hints, not sure if they apply to my problem. I've been running an IIS5.0 with an ASP page that executes a VBScript like this: Set..
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]