October 8th, 2013

PowerTip: Use PowerShell to Find System Committed Memory

Doctor Scripto
Scripter

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}} 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback