I inquired typeperf counters and instances, but couldn\'t find anything about the total memory. I only found
\\Memory\\Availble Bytes
\\Memory\\Cache Byt
Use the following command:
wmic ComputerSystem get TotalPhysicalMemory
Example output:
TotalPhysicalMemory
4275273728
Total Physical Memory
wmic ComputerSystem get TotalPhysicalMemory
Available Physical Memory
wmic OS get FreePhysicalMemory
Virtual Memory Max Size
wmic OS get TotalVirtualMemorySize
Virtual Memory Available
wmic OS get FreeVirtualMemory
You can combine them as follows into one command:
wmic ComputerSystem get TotalPhysicalMemory && wmic OS get FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory
Source SuperUser answer What's the equivalent command of “wmic memlogical” in Windows 7? by 8088
Try this
wmic memorychip get capacity
Viktar's answer (wmic memorychip get capacity
) gives you the capacity of each Dimm (which will work fine, if you have only one Dimm installed but gives you one value per Dimm if there is installed more than one). To get the size of total memory use:
wmic computersystem get TotalPhysicalMemory