Check RAM Slots and Sticks with Win32_PhysicalMemory
Find out how many memory modules are populated, their capacity and speed, and how many slots your motherboard has.
01Command
$ Get-CimInstance Win32_PhysicalMemory | Format-Table BankLabel, DeviceLocator, Capacity, Speed
(Get-CimInstance Win32_PhysicalMemoryArray).MemoryDevices02What it does
This is the fastest way to answer "can I add another stick?" without opening the case. Each Win32_PhysicalMemory row is one module: Capacity is in bytes (divide by 1GB), Speed shows the rated MHz, and DeviceLocator/BankLabel tell you which physical slot it occupies. The array's MemoryDevices property gives the total number of slots, so installed rows versus that number shows free slots at a glance. Matching the existing Speed and capacity is the safe upgrade path; mixing speeds works but usually downclocks everything to the slowest stick.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Win32_PhysicalMemory classEvidence: Documents the Win32_PhysicalMemory WMI class properties: Capacity, Speed, BankLabel, DeviceLocator.
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
PowerShell cmdlet that exposes BIOS, firmware, RAM and OS properties as a filterable object.
Search inside text files and logs with regex, returning file, line number and match.
One command that shows OS version, install date, boot time, memory, network adapters and installed hotfixes.