I already read almost the same question on this issue ( WMI hardware, get information about RAM ), and here I hope to get more information on this topic.
I need to get various hardware information, such as RAM serial number, SN SN, SN SN CPU, etc. I use Visual C ++ 2010 and use WMI to request information, but that does not give me what I want. For example, I started trying to get RAM SN, and after requesting it (I used Win32_PhysicalMemory, then I got the "SerialNumber" property), I get
SerialNumber
SerNum0
SerNum1
which is obviously not the one. I also went to the command line for it (wmic memorychip get serialnumber), but I get the same. But I know that there is a serial number; when I use the third-party CPU-Z program, it accurately recovers the RAM serial numbers.
Am I asking about the wrong class? Is there something I'm missing? I tried the executable, which I made on several other computers, with mixed results of success and failure - but CPU-Z never fails.
I am developing in Visual Studio C ++ 2010 on a 64-bit Windows 7 computer. Thanks.
source
share