How can I get total physical memory using Windows cmd

后端 未结 3 1923
梦如初夏
梦如初夏 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:44

    How can I get total physical memory

    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

    0 讨论(0)
  • 2021-02-03 10:45

    Try this

    wmic memorychip get capacity
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题