none
Hardware information

    Question

  • hi all

        how to get hardware information such as Manufacturer name,machine model No,processor details and BIOS details.

      please guide me,.

    Regards

    Selva 

    Tuesday, August 14, 2012 6:43 AM

Answers

All replies

  • Tuesday, August 14, 2012 7:45 AM
  • Maybe you can find in this MSDN page:

    http://msdn.microsoft.com/en-us/library/system.management.aspx

    Tuesday, August 14, 2012 8:09 AM
  • you try this code:

           public static string GetProcessorID()
           {
               string strProcessID = "";
               //-------Get processor ID---------
               ManagementObjectCollection mbsList = null;
               ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_processor");
               mbsList = mbs.Get();
               foreach (ManagementObject mo in mbsList)
               {
                   strProcessID = mo["ProcessorID"].ToString();
               }
               return strProcessID;
           }
    
           public static string GetMainID()
           {
               string strMainID = "";
               ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard");
               ManagementObjectCollection moc = mos.Get();
               foreach (ManagementObject mo in moc)
               {
                   strMainID = (string)mo["SerialNumber"];
               }
               return strMainID;
           }
           public static string GetHardDiskID()
           {
               ManagementObject dsk = new ManagementObject(@"win32_logicaldisk.deviceid=""c:""");
               dsk.Get();
               return dsk["VolumeSerialNumber"].ToString();
           }

    Tuesday, August 14, 2012 8:14 AM
  • Please check this article

    http://www.c-sharpcorner.com/uploadfile/8af3e0/get-your-hardware-information-using-c-sharp/


    With Thanks and Regards
    Sambath Raj.C
    click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you
    Happy Programming!

    Tuesday, August 14, 2012 8:27 AM