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!
I know there are 4GB RAM in my Core 2 Duo Desktop at home, but I can’t remember how many memory module or the size of each RAM installed to the memory slots.
I try to download the latest ASUS PC Probe II V1.04 (for P5B-Plus Vista Edition motherboard) but it does not work with Windows 7 64-bit, as ASUS driver download site said it works up to Windows Vista 64-bit :-(
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.
1) 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.
2) Run this WMIC command

The easiest way of remember this WMIC command is simply type
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.

WMIC is bundled with Windows XP and above (including the latest Windows 7). For those who are not using Windows XP and above, try to look for motherboard / memory utilities. Please share if you know of any.
I know there are 4GB RAM in my Core 2 Duo Desktop at home, but I can’t remember how many memory module or the size of each RAM installed to the memory slots.
I try to download the latest ASUS PC Probe II V1.04 (for P5B-Plus Vista Edition motherboard) but it does not work with Windows 7 64-bit, as ASUS driver download site said it works up to Windows Vista 64-bit :-(
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.
1) 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.
2) 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.
Custom Search






2010 •
re: Use WMI To Find Out RAM Slot In Used And Memory Size Of Each Slot…not work with my XP SP3. I got ”MEMORYCHIP -Alias not found” and verified that no such alias by enquiry with “wmic /?”