How can I get total physical memory using Windows cmd

后端 未结 3 1924
梦如初夏
梦如初夏 2021-02-03 09:54

I inquired typeperf counters and instances, but couldn\'t find anything about the total memory. I only found

    \\Memory\\Availble Bytes
    \\Memory\\Cache Byt         


        
3条回答
  •  不思量自难忘°
    2021-02-03 10:49

    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
    

提交回复
热议问题