title: Get Service Information without WMI
body: <p>presently I am writing a small piece of code to get the list of web services hosted on IIS in a remote system,</p>
  
  <p>the working code right now is :</p>
  
  <pre><code>       string q2 = "select * from Win32_PerfFormattedData_W3SVC_WebService";
          ManagementScope scope2 = new ManagementScope(string.Format(@"\\dtp-robaro2\{1}", host, ns), options); 
  
          // ns here is string ns = @"root\cimv2";
  
          scope2.Connect();
  
          ManagementObjectSearcher search2 = new ManagementObjectSearcher(scope, new ObjectQuery(q2));
          foreach (ManagementObject mo in search2.Get())
          {
              Console.WriteLine(mo.ClassPath);
              Console.WriteLine(mo.GetText(TextFormat.Mof));
          }
  </code></pre>
  
  <p>now I was wondering if WMI is turned off on the remote system that i am querying then is there any alternative way to access the information i get with the above code?</p>