Display Services of different servers in an ASP.NET page
<p>I am trying to create a Monitoring dashboard on which I want to display all services and status of the services of a server in a ASP.NET C# page. The servers in this instances are on the same network. I would like to know how I could achieve this.</p>

<p>Currently I am able to display all the services which are running locally on my PC using the following code:</p>

<pre><code>ServiceController[] services = ServiceController.GetServices();
            Response.Write("List of running services : &lt;BR&gt;");
            foreach (ServiceController service in services)
            {
                Response.Write(string.Format(" Service Name: {0} , status {1} &lt;BR&gt;", service.ServiceName, service.Status.ToString()));
            }
</code></pre>

<p>Which works great but I need it to be specific to a server as well as specific services.</p>