I want to gather user local machine hardware information for IT inventory for my organization. I want to develop single page ASP.NET website using C# where user may click and code will gather all information like processor details, hard disk drive details, RAM, and all motherboard details.
1 - Install System.Management using package manager and then code as below.
ManagementObjectCollection moc = mc.GetInstances();
string id = string.Empty;
foreach (ManagementObject mo in moc)
{
id = mo.Properties["processorID"].Value.ToString();
break;
}
We have many link to find hardware details, as below. https://www.codeproject.com/Articles/18268/How-To-Almost-Everything-In-WMI-via-C-Part-3-Hardw
https://codescratcher.com/windows-forms/get-computer-hardware-information-using-c/
https://www.codeproject.com/Articles/18146/How-To-Almost-Everything-In-WMI-via-C-Part-2-Proce