Use WMI To Find Out RAM Slot In Used And Memory Size Of Each Slot
How could I easily find out total number of memory slot in used and the memory size of each RAM module in the RAM slot, without open up computer casing?
The answer is to command the power of WMI in Windows Management Instrumentation Command-line (WMIC) utility!
WMIC is bundled with Windows XP and above (including the latest Windows 7).
Of course open the casing and take a look is not much effort, but why I have to do “dirty work” if there is an easier way to find out in no time?
So, here is this WMIC command I used to find out the number of RAM slot in used and the size of each RAM module in the memory slots.
- Open the Command Prompt window and execute the following sample. I have tested this sample in both Windows 7 and Windows Vista and confirm there is no need of using Command Prompt with elevated privilege.
- Run this WMIC command -> wmic MEMORYCHIP get banklabel, devicelocator, caption, capacity
The easiest way of remember this WMIC command is simply type wmic /? to find out more information. For this particular case, you can shorten the WMIC command for a lengthy output, e.g. wmic memorychip output all information related to memory detected by WMI.
As you can see, there is no need to install additional program, writing a Windows Shell Script or PowerShell script, etc. If you’re using Windows XP and above, the bundled WMIC does the job well.