PowerTip: Use PowerShell to Find System Committed Memory

Doctor Scripto

Summary:  Use Windows PowerShell to find total system committed memory.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the total system committed memory on my computer?

Hey, Scripting Guy! Answer 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

Discussion is closed.

Feedback usabilla icon