473,383 Members | 1,795 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,383 software developers and data experts.

Accessing information on IIS programatically

Hi all,

Does anyone know of a way I can get information on the status of IIS including
what websites and Virtual Roots are defined and whether they are running
or not.

I'll be using C# in particular and am currently looking into WMI - something
that I havent used in the past.

Anyone know if I'm on the right track?

Many thanks

Kindest Regards
Jul 21 '05 #1
2 1147
IIS 5.0 exposes a COM+ object model that you can interop with to
progrramatically access and modify the IIS metabase. Im not sure which
dll or what interfaces it exposes, may some one from MS can help there.
But if you are using IIS 6.0, WMI will definately work. IIS 6.0 exposes
a WMI namespace that you can connect to and manage the IIS metabase.
Sorry dont have more details on that for ya, but if your app is gonna
manage 5.0 or older WMI may not be possible. I could be wrong here
though.

Hope this helps,
NuTcAsE

Jul 21 '05 #2
Try :
http://msdn.microsoft.com/library/de...6151561f01.asp
(uses System.DirectoryServices) but you'll find also how to do thiw with WMI
or ADSI...

AFAIK the 2.0 should have a programming model to access the IIS metabase...

Patrice

--

"thechaosengine" <na> a écrit dans le message de
news:14*********************@news.microsoft.com...
Hi all,

Does anyone know of a way I can get information on the status of IIS including what websites and Virtual Roots are defined and whether they are running
or not.

I'll be using C# in particular and am currently looking into WMI - something that I havent used in the past.

Anyone know if I'm on the right track?

Many thanks

Kindest Regards

Jul 21 '05 #3

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

Similar topics

3
by: Simon Harvey | last post by:
Hi chaps, Can someone direct me to the necessary class that will allow me to write information into my applications .config file? I know how to read information but I'm sure there must be a way...
4
by: radrain | last post by:
I need to programmatically get the list of users and/or groups related to a specific registry keys permissions. I have successfully access key values from the registry but I need a way to,...
2
by: Mike Grishaber | last post by:
Does anyone know how to read an Excel file using C# and treat the resluts as RecordSets? Thanks Mike
3
by: thechaosengine | last post by:
Hi all, Does anyone know of a way I can get information on the status of IIS including what websites and Virtual Roots are defined and whether they are running or not. I'll be using C# in...
1
by: CS Wong | last post by:
Hi, I have a page form where form elements are created dynamically using Javascript instead of programatically at the code-behind level. I have problems accessing the dynamically-created...
0
by: PL | last post by:
Hi, I'm trying to work out how to access "Object Libraries" programatically. What I want to be able to do is read in various information about the object library and store it in a table. What...
1
by: j.eckles | last post by:
I'm trying to determine if there is a way in VBScript, perhaps via ADO or DAO, to access what I'll term MS Access "object groups". What I mean by "object groups" are the folders that you see under...
0
by: BK | last post by:
I need to find out who is accessing a shared file on a Windows Server. We need to update some shape files for a GIS application on a daily basis, but sometimes they are in use. We don't want to...
1
by: thiago777 | last post by:
Hello, Im used to php programming and not so familiar with database connections throught VB. I managed to connect to my mssql server using Visual Studio 2005's wizards and even created a method...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.