4/6/2022
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). 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
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.


  1. 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 /?”

  2. This worked awesome on my X64 Windows 7 Laptop. Nice work. I can’t believe I have been an admin for so long and never ran across this command. Thanks.

  3. I couldnt find “MEMORYCHIP” searching through wmic /? … some help please!

  4. Awsome !
    I’m developing a C++ app. to connect WMI, then
    I used this as a reference to query cimv2 namespace, knowing the expected result for each device polled.
    Thanks

  5. WMIC MEMORYCHIP shows only RAM slot in use. But how to show all RAM slots with their maximum available capacity?

  6. You rock man. it works for win7 64bit.

    Thanks,

    Michael

  7. Hi, in which unit is the capacity displayed? Thanks Dawie

  8. It’s in byte.

  9. absolutely awesome command,

    works like a charm

  10. Nice! No additional SW to install!

    Thanks,
    Ravi.

  11. Thank you Walker! Great command!

    The best part is not having to reboot a user’s machine just to check the BIOS for this information.

  12. I agree with Zdzich that how to find free slots of server that command only shows used slots.

  13. wmic memphysical get memorydevices

    shows the number of memory slots. Just deduct the number of used slots then you’ll find the remaining available unused slots.

    To find out which slot is being used by memory cards installed, use this command:

    wmic memorychip get capacity, devicelocator

    Good luck!

  14. Awesome! Just what I was looking for. This gives me lots of programming ideas with WMIC, too!
    Thanks man!!

  15. This quick and simple solution made my day! Thanks for the tip!

  16. Great!! Awesome!!!

  17. Thanks! exactly what I was looking for.

  18. How to find the DIMM empty slots ?

  19. Motherboard WIC command :

    wmic baseboard get product,manufacturer,versio,serial number

  20. Great work thank you for your help. My job just go so much easier.:-)

  21. This is an awesome job. Worked at once

  22. Wonderful commands – works like charm!

  23. Fantastic! Wow, i didnt know about this method at all. Genius. Thank you!

  24. Note:in xp can use ‘mem’ command
    hop this also useful

  25. need to find total slots available, if ram is not connected in one slot also.

  26. can we do this somehow on a remote pc on the network?

    ty

  27. Type wmic /node:”computername” memorychip get banklabel,devicelocator,caption,capacity. Substitute the name of the remote computer for “computername” in the command.

    Mike

In windows 10 under RAM in task manager it says 'Slots used: 1 of 2' i am searching my laptop on-line suggests that it only has one slot. How many slots I have?.Post moved by the moderator to the appropriate forum category.

How To Find How Many Memory Slots Are Used Per

How to find out which memory slots are used

How To Find How Many Memory Slots Are Used Without

I have redhat 5 server, may i Know if i want to use command to find how many memory slot and the max memory the server is supported. It states that it comes with 1GB RAM, can accept up to 4GB RAM, and has 2 memory slots available at time of purchase. How many memory slots are available in each ESXi host; how many and what type (DDR2/DDR3, size, MHz) of memory modules are installed in the slots; To collect this info I have to use PowerCLI and if needed, I can use ESXCli from within it. However I do not have ssh access to the ESXi hosts, so running native ESXi commands is not a possibility. I recently needed to find out which memory slots where occupied on multiple machines. I found a command that allowed me to find this information without opening up a single computer case. From a Command Prompt, run the following: wmic MEMORYCHIP get banklabel, capacity, caption, devicelocator, partnumber.