473,379 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

extracting list of websites from IIS manager

Hi-

I'm looking for C# code sample that will extract the list of websites
from the IIS manager. anyone?

Thanks!

Nov 17 '05 #1
3 2761
In message <11*********************@g49g2000cwa.googlegroups. com>, Abhi
<ku******@gmail.com> writes
Hi-

I'm looking for C# code sample that will extract the list of websites
from the IIS manager. anyone?


Http://www.netomatix.com/EnumWebDirs.aspx

should point you in the right direction.

--
Steve Walker
Nov 17 '05 #2
hi,

Do you need a list of websites or web apps ( virtual dirs ) ?

You can find a list of virtual dirs in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W3SVC\Parameters\Virtual
Roots

Regarding the list of web sites , it should be in the registry as well , but
I could not find it the last time I searched, I found an example at
http://www.windowsitpro.com/Article/...1557.html?Ad=1 that
explain how to do it, as my target machine was running XP pro, I could only
define a web site so I did not used it at the end :)

Also I think you can use WMI to get this info, but I'm not very sure of it.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Abhi" <ku******@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi-

I'm looking for C# code sample that will extract the list of websites
from the IIS manager. anyone?

Thanks!

Nov 17 '05 #3
Directing people to search the registry is in general a bad idea, the
locations of keys and data are not carved in stone and are not necessarily
the same on different OS versions. Treat the registry as a black box, unless
you are dealing with your own entries, and use the API's where available.
For managed code, the API's are found in System.DirectoryServices or prefer
System.Management over the former, as System.DirectoryServices (ADSI)
requires IIS to be installed at the client.

Willy.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uW**************@TK2MSFTNGP14.phx.gbl...
hi,

Do you need a list of websites or web apps ( virtual dirs ) ?

You can find a list of virtual dirs in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W3SVC\Parameters\Virtual
Roots

Regarding the list of web sites , it should be in the registry as well ,
but I could not find it the last time I searched, I found an example at
http://www.windowsitpro.com/Article/...1557.html?Ad=1 that
explain how to do it, as my target machine was running XP pro, I could
only define a web site so I did not used it at the end :)

Also I think you can use WMI to get this info, but I'm not very sure of
it.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Abhi" <ku******@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi-

I'm looking for C# code sample that will extract the list of websites
from the IIS manager. anyone?

Thanks!


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: semarketing-request | last post by:
>>>> This is a multi-part message in MIME format. **** Command 'this' not recognized. **** No valid commands found. **** Commands must be in message BODY, not in HEADER. **** Help for...
2
by: Steve | last post by:
Hi, I have a very long string, someting like: DISPLAY=localhost:0.0,FORT_BUFFERED=true, F_ERROPT1=271\,271\,2\,1\,2\,2\,2\,2,G03BASIS=/opt/g03b05/g03/basis,...
7
by: Raphi | last post by:
Hi, I'm trying to clean up a large database in Access. I have one field for address, which needs to be broken up into Street Number, Street Name, and Street Label (St., Road, etc.) The...
2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
7
by: heltena | last post by:
Hi, I have this "interface" (abstract class): class Callback { public: virtual void function1() = 0; virtual void function2(string value) = 0; };
2
by: Lucky | last post by:
hi guys, few days back i've posted a question regarding how can i get the list of the websites form the IIS, at this location: ...
0
by: Andreas Tawn | last post by:
-----Original Message----- g] On Behalf Of Steve Holden Can't help with a recipe, but here's the formal spec if want to figure it out yourself. ...
3
by: teddarr | last post by:
I have a Windows Server 2003. I am trying to run multiple websites on the server. I have 3 different websites I'd like to run. Currently the default website is working but no others. All...
0
by: teddarr | last post by:
I have a Windows Server 2003. I am trying to run multiple websites on the server. I am using host headers to run the websites on only one ip address. Before anyone says this is an iis issue and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.