Jitesh Byahut 2/16/2014 4128

Win32_BaseBoard in WMI C# Asp.Net

Here we are retrieving Motherboard details of Computer.

Use namespace System.Management

using System.Management;

 

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

{

    protected void Page_Load(object sender, EventArgs e)

    {

      ManagementObjectSearcher search1 = new ManagementObjectSearcher("select * fromWin32_BaseBoard");

 

        foreach (ManagementObject obj in search1.Get())

        {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Response.Write("RequiresDaughterBoard  -  " + obj["RequiresDaughterBoard"]);           

        }

    }  

}

Demo

View output :


demoimage


Please give your feedback for improving this page