[c#] get motherboard chipset information.

Discussion in 'Mixed Languages' started by xxhbdl, Apr 17, 2015.

  1. xxhbdl

    xxhbdl MDL Novice

    Mar 7, 2015
    11
    2
    0
    please help, how can I recognize the description of the motherboard chipset? wmic?
     
  2. gap-computer

    gap-computer MDL Novice

    Apr 10, 2015
    19
    3
    0
    use this program cpu-z
     
  3. xxhbdl

    xxhbdl MDL Novice

    Mar 7, 2015
    11
    2
    0
    I was looking for a solution in c# ^_^
     
  4. Alphawaves

    Alphawaves Super Moderator/Developer
    Staff Member

    Aug 11, 2008
    5,864
    20,049
    180
    #4 Alphawaves, Apr 17, 2015
    Last edited by a moderator: Apr 20, 2017
    You maybe want to look at win32_pnpentity

    Little example:
    Code:
    foreach (ManagementObject cset in new ManagementObjectSearcher("root\\CIMV2", "SELECT caption FROM win32_pnpentity where caption like '%Chipset%'").Get())
                {
                    Console.WriteLine((string)cset["caption"]);
                }
                Console.ReadKey();
    :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. gap-computer

    gap-computer MDL Novice

    Apr 10, 2015
    19
    3
    0
    sorry i misread the tittle of your post
     
  6. xxhbdl

    xxhbdl MDL Novice

    Mar 7, 2015
    11
    2
    0
    #6 xxhbdl, Apr 18, 2015
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I had already tried, win32_pnpentity is definitely not the right class in which to search. ^_^ Thank you for your help.
     
  7. Alphawaves

    Alphawaves Super Moderator/Developer
    Staff Member

    Aug 11, 2008
    5,864
    20,049
    180
    Will look into it a little.. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,477
    628
    60
    #8 Flipp3r, Apr 19, 2015
    Last edited by a moderator: Apr 20, 2017
    Sorry I don't know #C. What if you get the chipset from the motherboard name?
    Code:
    @echo off
    FOR /F "tokens=*" %%A IN ('WMIC BaseBoard Get Product /Value ^| FIND "="') DO SET Product=%%A
    SET Product=%Product:~8%
    echo Motherboard^: %Product% 
    pause
    On my PC this returns "Motherboard: Z68A-GD65 (G3) (MS-7681)".
    You could search for the chipset string, ie Z68...
    I'm thinking this may not work with all cases though...
     
  9. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,473
    1,293
    60
    #9 QuantumBug, Apr 21, 2015
    Last edited: Apr 21, 2015
    This is possible through Win32_PnPEntity, though you need to parse the information. Alphawaves code will create a smaller list for you so it IS correct; which is good but it will need work from you.

    The Win32_PnPEntity class represents the properties of a Plug and Play device. Plug and Play entities are shown as entries in the Device Manager located in the Control Panel.

    If you really want to dig you can natively request the information from Windows, but it's more work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...