Win32_Process in WMI C#

Here we are retrieving Process details of Computer.

Use namespace System.Management

using System.Management;

 

public partial class Win_Win32_Process  : System.Web.UI. Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

     ManagementObjectSearcher objprocess = new ManagementObjectSearcher( "select * from Win32_Process" );

 

        foreach (ManagementObject obj in objprocess.Get())

        {

            Response.Write("Name  -  " + obj["Name" ] +  "</br>");

            Response.Write("Description  -  " + obj["Description" ] +  "</br>");

            Response.Write("ProcessId  -  " + obj["ProcessId" ] +  "</br></br>");

        }

    }

}

Demo

View output :

demoimage