Remotely reading configuration info from an IIS 7.0 via c#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Not sure which is the correct forum to post this (I have tried wmi
programming as well) so I apologies if this is not the best place (appreciate
any suggestions).

I am trying to remotely connect to an IIS 7.0 server instance to read
configuration parameters for documentation purposes. I am trying to do this
via c# but none of the researched methods are working? I have tried the
following methods:

Microsoft.Web.Administration - not useful due to the rpc configuration
changes that must be made to the boxes

C# -Using System.Managment and WMI
Receive an "Invalid Namespace"

C# -Using System.DirectoryServices and ADSI
Unknown error (0x80005000)

I am just trying to create a console app that will document the os, sql
server and IIS. I have been able to do the OS (WMI) and SQL (SMO) however,
every route with IIS has failed and nothing I have found researching the
documentation works? Has anyone been able to do this?
.



Relevant Pages

  • WMI & VB6
    ... I have been wading through the mountains of documentation for WMI scripting, ... of Win32_ComputerSystem in a regular VB6 application. ...
    (microsoft.public.vb.syntax)
  • Re: WMI & VB6
    ... I agree the WMI documentation is less than useful Andrew...tons of marketing ... There are newsgroups specifically for wmi. ... > of Win32_ComputerSystem in a regular VB6 application. ... > documentation provided in the scripting reference is not viable for me. ...
    (microsoft.public.vb.syntax)
  • Re: WMI & VB6
    ... "Tony Proctor" wrote: ... > There are newsgroups specifically for wmi. ... >> I have been wading through the mountains of documentation for WMI ... >> documentation provided in the scripting reference is not viable for me. ...
    (microsoft.public.vb.syntax)
  • Re: [ANNOUNCE] ACPI BIOS Guideline for Linux
    ... It is all about documentation, ... WMI is complicating things by one needless and complicated layer. ... and makes it easier for vendors to provide Windows support. ...
    (Linux-Kernel)
  • Re: Library of Network routines.
    ... Is there somewhere documentation that will tell me how to do all of this? ... would be to make the calls to the underlying windows API to perform these ... embeded XP so we need to have our own interface to do this (which is ... WMI stuff. ...
    (microsoft.public.dotnet.languages.csharp)