Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.71/5 (5 votes)
See more:
Hello,
I need a code to identify the motherboard and which version, name graphics, how much graphics bus, and I bit Windows. thank you very much
Posted
Comments
Maciej Los 21-Mar-13 7:31am    
Not a question... Please, be more specific and provide more details. Describe your problem and share a code. Where do you stuck? What have you done till now?

Hi Lahvicka,


Please refer links given below:


Retrieving Motherboard Serial Number using WMI

Getting Motherboard Information using C#

Get actual MotherBoard serial number


PC Info


For Graphics info:

Add a reference to System.Management, then you can do this:

C#
ManagementObjectSearcher searcher 
     = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");

    string graphicsCard = string.Empty;
    foreach (ManagementObject mo in searcher.Get())
    {
        foreach (PropertyData property in mo.Properties)
        {
           if (property.Name == "Description")
           {
               graphicsCard = property.Value.ToString();
           }
        }
    }
 
Share this answer
 
Comments
Maciej Los 21-Mar-13 17:20pm    
Good hints, +5!
Deependra Khangarot has a bunch of really good links...I just want to add this CP article to the list: How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^]

Hope it helps.
 
Share this answer
 
Comments
Maciej Los 21-Mar-13 17:19pm    
Nice link, +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900