Summary: Use Windows PowerShell to find total system committed memory.
How can I use Windows PowerShell to find the total system committed memory on my computer?
Use Get-WmiObject (or Get-CimInstance), query the Win32_Operatingsystem WMI class, choose
the TotalVirtualMemory and the FreeVirtualMemory properties, and then perform the calculation:
Get-WmiObject win32_operatingsystem |
Select @{L=’commit’;E={($_.totalvirtualmemorysize – $_.freevirtualmemory)*1KB/1GB}}
0 comments