I need to get complete information about the RAM modules. I tried to get it using WMI:
ManagementObjectSearcher searcher12 = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_PhysicalMemory"); Console.WriteLine("------------- Win32_PhysicalMemory instance --------"); foreach (ManagementObject queryObj in searcher12.Get()) { Console.WriteLine("BankLabel: {0} ; Capacity: {1} Gb; Speed: {2}; Manufacturer: {3}; Serial Number: {4}", queryObj["BankLabel"], Math.Round(System.Convert.ToDouble(queryObj["Capacity"]) / 1024 / 1024 / 1024, 2), queryObj["Speed"], queryObj["Manufacturer"], queryObj["Name"]); }
but it didn’t help me, he just doesn’t have this information. How can I get this information?
source share