How can I get total physical memory using Windows cmd

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

提交回复
热议问题