PC Review


Reply
Thread Tools Rate Thread

Accessing information on IIS programatically

 
 
thechaosengine
Guest
Posts: n/a
 
      18th Feb 2005
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


 
Reply With Quote
 
 
 
 
NuTcAsE
Guest
Posts: n/a
 
      18th Feb 2005
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

 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      18th Feb 2005
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:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
programatically accessing the ROM arun Microsoft Dot NET Compact Framework 1 27th Mar 2006 07:01 PM
accessing fieldnames programatically =?Utf-8?B?TVlLTElW?= Microsoft Access VBA Modules 2 27th Jul 2005 03:05 AM
Accessing information on IIS programatically thechaosengine Microsoft C# .NET 3 18th Feb 2005 04:20 PM
Accessing information on IIS programatically thechaosengine Microsoft Dot NET Framework 2 18th Feb 2005 04:20 PM
Accessing Resource information programatically =?Utf-8?B?RGVuNDI=?= Microsoft Windows 2000 Macintosh 5 7th Nov 2003 08:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 PM.