Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

List all WebSites

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Global.asa changes ignored  
Author Message
user1876

External


Since: Jul 05, 2004
Posts: 10



(Msg. 1) Posted: Mon Jul 12, 2004 12:22 am
Post subject: List all WebSites
Archived from groups: microsoft>public>inetserver>iis (more info?)

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 "

 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 2) Posted: Mon Jul 12, 2004 12:22 am
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 11 Jul 2004 21:22:41 +0200, "Tamir Khason"
<tamir-NOSPAM.TakeThisOut@tcon-NOSPAM.co.il> wrote:

 >How to list (I assuming using ADSI) all web sites on machine (including
 >virtual pathes of them)?

Maybe start with:

<a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=3156" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=3156</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2989" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2989</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2745" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2745</a>

And some of the others here:

<a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2538" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2538</a>

Jeff<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1876

External


Since: Jul 05, 2004
Posts: 10



(Msg. 3) Posted: Mon Jul 12, 2004 1:42 am
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

tnx, got all of those articles (not bad at all). Now the question is how can
I enumerate all
DirectoryEntry properties

I'm working in C# enviroment and it;s going to be quite challenge to figure
each on those properties (eg. local path (from Directory without root),
server status etc.)

Please advice how to enumerate them all in order to be able to start working
like a human, but not blind puppy.



TNX


--
Tamir Khason
You want dot.NET? Just ask:
"Please, <a style='text-decoration: underline;' href="http://www.dotnet.us" target="_blank">www.dotnet.us</a> "


"Jeff Cochran" <jeff.nospam.DeleteThis@zina.com> wrote in message
news:40f58bd3.283889020@msnews.microsoft.com...
 > On Sun, 11 Jul 2004 21:22:41 +0200, "Tamir Khason"
 > <tamir-NOSPAM.DeleteThis@tcon-NOSPAM.co.il> wrote:
 >
  > >How to list (I assuming using ADSI) all web sites on machine (including
  > >virtual pathes of them)?
 >
 > Maybe start with:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=3156</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=3156</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2989</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2989</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2745</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2745</font</a>>
 >
 > And some of the others here:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2538</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2538</font</a>>
 >
 > Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 4) Posted: Mon Jul 12, 2004 1:42 am
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 11 Jul 2004 22:42:30 +0200, "Tamir Khason"
<tamir-NOSPAM.TakeThisOut@tcon-NOSPAM.co.il> wrote:

 >tnx, got all of those articles (not bad at all). Now the question is how can
 >I enumerate all
 >DirectoryEntry properties
 >
 >I'm working in C# enviroment and it;s going to be quite challenge to figure
 >each on those properties (eg. local path (from Directory without root),
 >server status etc.)
 >
 >Please advice how to enumerate them all in order to be able to start working
 >like a human, but not blind puppy.

Perhaps this:

<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/en-us/iissdk/iis/enumerating_properties_at_a_metabase_node.asp" target="_blank">http://msdn.microsoft.com/library/en-us/iissdk/iis/enumerating_propert..._at_a_m</a>

The full SDK may also help:

<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/en-us/dnanchor/html/anch_iis.asp" target="_blank">http://msdn.microsoft.com/library/en-us/dnanchor/html/anch_iis.asp</a>

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1876

External


Since: Jul 05, 2004
Posts: 10



(Msg. 5) Posted: Mon Jul 12, 2004 2:54 am
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Found and did it. Result is "The Directory can not report number of
properties..."
Sad

--
Tamir Khason
You want dot.NET? Just ask:
"Please, <a style='text-decoration: underline;' href="http://www.dotnet.us" target="_blank">www.dotnet.us</a> "


"Jeff Cochran" <jeff.nospam.TakeThisOut@zina.com> wrote in message
news:40f19e89.1573953@msnews.microsoft.com...
 > On Sun, 11 Jul 2004 22:42:30 +0200, "Tamir Khason"
 > <tamir-NOSPAM.TakeThisOut@tcon-NOSPAM.co.il> wrote:
 >
  > >tnx, got all of those articles (not bad at all). Now the question is how
can
  > >I enumerate all
  > >DirectoryEntry properties
  > >
  > >I'm working in C# enviroment and it;s going to be quite challenge to
figure
  > >each on those properties (eg. local path (from Directory without root),
  > >server status etc.)
  > >
  > >Please advice how to enumerate them all in order to be able to start
working
  > >like a human, but not blind puppy.
 >
 > Perhaps this:
 >
 >
<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/en-us/iissdk/iis/enumerating_properties_at_a_metabase_node.asp" target="_blank">http://msdn.microsoft.com/library/en-us/iissdk/iis/enumerating_propert..._at_a_m</a>
 >
 > The full SDK may also help:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/en-us/dnanchor/html/anch_iis.asp</font" target="_blank">http://msdn.microsoft.com/library/en-us/dnanchor/html/anch_iis.asp</font</a>>
 >
 > Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 6) Posted: Mon Jul 12, 2004 9:42 am
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Tamir,

Please note the sample you refered to requires Win2K3 SP1 which
hasn't been shipped and only has beta version now:

"This example requires Windows Server 2003 Service Pack 1 (SP1).
Previous to Windows Server 2003 SP1, the IIS ADSI provider could not
be used from System.DirectoryServices to enumerate metabase nodes."

To achieve the same functionality, you can use IIS6 WMI provider
instead. The following sample enumerates all vdirs which allow
executable permission:


using System;

using System.Management;


namespace wmi1

{

class Sample_SelectQuery

{

public static int Main(string[] args)

{

ManagementObjectSearcher s = new
ManagementObjectSearcher(

"root\\MicrosoftIISv2",

"SELECT name FROM IISWebVirtualDirSetting
where AccessExecute=true",

new EnumerationOptions());


foreach (ManagementObject vdir in s.Get())

{

Console.WriteLine(vdir.ToString());

}

return 0;

}

}

}


Let me know if there is anything unclear. My pleasure to be of
assistance.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1876

External


Since: Jul 05, 2004
Posts: 10



(Msg. 7) Posted: Mon Jul 12, 2004 1:28 pm
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

But I need univeral solution for NT4,2K,XP and 2003 for following:
Get list of All Web Sites on the server, includes
1) All Virtual Paths
2) All Physical Paths
3) Domains for each site (if possible)

Please advice,
TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, <a style='text-decoration: underline;' href="http://www.dotnet.us" target="_blank">www.dotnet.us</a> "


""WenJun Zhang[msft]"" <v-wzhang.DeleteThis@online.microsoft.com> wrote in message
news:gEv9qt9ZEHA.2688@cpmsftngxa06.phx.gbl...
 > Hi Tamir,
 >
 > Please note the sample you refered to requires Win2K3 SP1 which
 > hasn't been shipped and only has beta version now:
 >
 > "This example requires Windows Server 2003 Service Pack 1 (SP1).
 > Previous to Windows Server 2003 SP1, the IIS ADSI provider could not
 > be used from System.DirectoryServices to enumerate metabase nodes."
 >
 > To achieve the same functionality, you can use IIS6 WMI provider
 > instead. The following sample enumerates all vdirs which allow
 > executable permission:
 >
 >
 > using System;
 >
 > using System.Management;
 >
 >
 > namespace wmi1
 >
 > {
 >
 > class Sample_SelectQuery
 >
 > {
 >
 > public static int Main(string[] args)
 >
 > {
 >
 > ManagementObjectSearcher s = new
 > ManagementObjectSearcher(
 >
 > "root\\MicrosoftIISv2",
 >
 > "SELECT name FROM IISWebVirtualDirSetting
 > where AccessExecute=true",
 >
 > new EnumerationOptions());
 >
 >
 > foreach (ManagementObject vdir in s.Get())
 >
 > {
 >
 > Console.WriteLine(vdir.ToString());
 >
 > }
 >
 > return 0;
 >
 > }
 >
 > }
 >
 > }
 >
 >
 > Let me know if there is anything unclear. My pleasure to be of
 > assistance.
 >
 > Best regards,
 >
 > WenJun Zhang
 > Microsoft Online Support
 > This posting is provided "AS IS" with no warranties, and confers no
 > rights.
<font color=purple> > Get Secure! - <a style='text-decoration: underline;' href="http://www.microsoft.com/security</font" target="_blank">www.microsoft.com/security</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 8) Posted: Mon Jul 12, 2004 6:26 pm
Post subject: Re: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 12 Jul 2004 06:42:28 GMT, v-wzhang RemoveThis @online.microsoft.com
("WenJun Zhang[msft]") wrote:

 >Please note the sample you refered to requires Win2K3 SP1 which
 >hasn't been shipped and only has beta version now:
 >
 >"This example requires Windows Server 2003 Service Pack 1 (SP1).
 >Previous to Windows Server 2003 SP1, the IIS ADSI provider could not
 >be used from System.DirectoryServices to enumerate metabase nodes."

Cool. Especially since I passed that link to him directly off
Microsoft's web site... Smile

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 9) Posted: Wed Jul 14, 2004 8:48 am
Post subject: RE: List all WebSites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Tamir,

I just wonder if you have any further questions?

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: List all WebSites 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Get Domains List? - Is there a way to export or view a list of all domains and host headers on an IIS server? Thanks!

Favorites list - I have deleted some items from my Favorite list (over & over) and when I reboot my PC; they appear again. How can I stop them from re-appearing?

Conditional List Box in ASP - Hi there, I am having a few problems compiling a list box that is conditional on what is selected in another list box. What i need is a List box (lstArea) that displays one thing when the List Box (lstRegion) is selected East or West. Basically the area...

IIS not listed under web servers list - Hi there, I'm running IIS 5.0 on Xp Pro. I don't see the web server listed when I'm trying to install server extensions. Tried reinstalling IIS and that didn't help either. Any comment would be appreciated! Thanks, Gilgamesh

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? -- ÁÙ§Ú¥»¦â ...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
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 ]