471,347 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 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 1090
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Simon Harvey | last post: by
2 posts views Thread by Mike Grishaber | last post: by
3 posts views Thread by thechaosengine | last post: by
reply views Thread by PL | last post: by
reply views Thread by Ronak mishra | last post: by

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.