Hi All,
Could you share the relevance to find the RAM value in particular slot,
For example a machine having 2 slot and 4GB & 4GB RAM card inserted in that 2 slots, how to get these details using relevance,
Thanks,
Nagaraj,
Hi All,
Could you share the relevance to find the RAM value in particular slot,
For example a machine having 2 slot and 4GB & 4GB RAM card inserted in that 2 slots, how to get these details using relevance,
Thanks,
Nagaraj,
I think you will need to look at WMI data for this. Take a look at the Win32_PhysicalMemory class. As an example
Q: selects "DeviceLocator,Capacity from Win32_PhysicalMemory" of wmi
A: Capacity=8589934592
A: DeviceLocator=DIMM1_CPU1
A: Capacity=8589934592
A: DeviceLocator=DIMM3_CPU1
A: Capacity=8589934592
A: DeviceLocator=DIMM2_CPU1
A: Capacity=8589934592
A: DeviceLocator=DIMM4_CPU1
A: Capacity=8589934592
A: DeviceLocator=DIMM1_CPU2
A: Capacity=8589934592
A: DeviceLocator=DIMM3_CPU2
A: Capacity=8589934592
A: DeviceLocator=DIMM2_CPU2
A: Capacity=8589934592
A: DeviceLocator=DIMM4_CPU2
Some other examples can be found on Bigfix.me that might help you get the data you’re interested in.
Thanks @SLB I can get the RAM value in each slot but it is showing bits, is this a way convert in to MB (or) GB for the value,
Thanks,
Nagaraj,
Q: (string value of properties "DeviceLocator" of it, (string value of properties "Capacity" of it as integer / 1024 / 1024) as string & "MB") of (select objects "DeviceLocator,Capacity from Win32_PhysicalMemory" of wmi)
A: DIMM1_CPU1, 8192MB
A: DIMM3_CPU1, 8192MB
A: DIMM2_CPU1, 8192MB
A: DIMM4_CPU1, 8192MB
A: DIMM1_CPU2, 8192MB
A: DIMM3_CPU2, 8192MB
A: DIMM2_CPU2, 8192MB
A: DIMM4_CPU2, 8192MB
Divide by another 1024 if you prefer GB