How to get full physical memory using Windows cmd

I requested counters and typeperf instances, but could not find anything about shared memory. I just found

\Memory\Availble Bytes \Memory\Cache Bytes \Process\Private Bytes \Process\Working Set 

and adding any combination of them does not match the shared memory in the task manager.

I also tried

  systeminfo | findstr /C:"Total Physical Memory" 

but this only worked in english mode (chcp 437). I am not an American and do not make a program for different countries ... and, above all, it takes too much time.

Please, does anyone know a good idea to get full memory on Windows with just cmd? Or please explain the relationship of memories to me so that I can calculate the total memory from typeperf requests.

+8
windows memory cmd
source share
3 answers

How to get full physical memory

Use the following command:

 wmic ComputerSystem get TotalPhysicalMemory 

Output Example:

 TotalPhysicalMemory 4275273728 

Total physical memory

 wmic ComputerSystem get TotalPhysicalMemory 

Available physical memory

 wmic OS get FreePhysicalMemory 

Maximum virtual memory size

 wmic OS get TotalVirtualMemorySize 

Virtual memory available

 wmic OS get FreeVirtualMemory 

You can combine them as follows in one command:

 wmic ComputerSystem get TotalPhysicalMemory && wmic OS get FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory 

SuperUser source answer What is the equivalent wmic memlogical command in Windows 7? 8088

+10
source share

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 one value for Dimm if more than one is installed). To get the total memory usage size:

 wmic computersystem get TotalPhysicalMemory 
+1
source share

try it

 wmic memorychip get capacity 
0
source share

All Articles