473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1149
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.