473,770 Members | 3,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2776
In message <11************ *********@g49g2 000cwa.googlegr oups.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_MACH INE\SYSTEM\Curr entControlSet\S ervices\W3SVC\P arameters\Virtu al
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******** *************@g 49g2000cwa.goog legroups.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.Director yServices or prefer
System.Manageme nt over the former, as System.Director yServices (ADSI)
requires IIS to be installed at the client.

Willy.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:uW******** ******@TK2MSFTN GP14.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_MACH INE\SYSTEM\Curr entControlSet\S ervices\W3SVC\P arameters\Virtu al
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******** *************@g 49g2000cwa.goog legroups.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
1274
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 semarketing-request@go.listdeliver.com: Introduction to the List Manager -------------------------------- This is the Mailing List Manager for Post.Office version v3.5.3.
2
3000
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, GAMESS=/opt/gamess,GAUSS_ARCHDIR=/opt/g03b05/g03/arch, GAUSS_EXEDIR=/opt/g03b05/g03/bsd:/opt/g03b05/g03/private:/opt/g03b05/g
7
3004
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 problem is that the data is very dirty. So some addresses will be standard "456 XYZ Road," while others won't have a number and will just say "XYZ Industrial Park," meaning I can't just use Instr to search for the first space because sometimes the...
2
2816
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 C#. The only significant problem that I have encountered in the conversion is this one - extracting an icon from the 'KTEntryPoint' program into the software suite and placing that icon on the PC Desktop.
7
1992
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
5986
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: http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/97f4f07b8b46a397/41372cde30df29e7?lnk=st&q=how+to+get+list+of+websites+from+IIS+C%23&rnum=1&hl=en#41372cde30df29e7 and i got a nice replay. it worked. now the problem is different when i tried the code on the...
0
1114
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. http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html Hope that helps.
3
4530
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 the domains have an a record pointing to the network router. The router is conficured correctly to send all website requests to my server. One the server and for each website I went to the IIS manager on the Websites tab and have the IP address set...
0
2447
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 in the wrong forum, Please note that I have tested all the host header settings with a simple hello world html file and everything works great. I get a runtime error that tells me to change custom errors to "Off". The main problem is that custom...
0
9595
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.