«

»

Nov 25

Print this Post

Find Free Physical Memory by dos command powershell

How to find Free Physical Memory

Below are the command to get Free Physical Memory via command line and power-shell.

Command Line

Get-WmiObject -Query ‘Select * from Win32_OperatingSystem’ | Select FreePhysicalMemory | Format-Table -AutoSize;

PowerShell

Powershell -noexit -command “&{Get-WmiObject -Query ‘Select * from Win32_OperatingSystem’ | Select FreePhysicalMemory | Format-Table -AutoSize;}”

Get-Process | Select Name, @{Name=’CPU(s)’;Expression={$_.CPU}} | sort ‘CPU(s)’ -Descending | Select -First 5| Format-Table -AutoSize;

 

 

Permanent link to this article: http://www.techxpress.in/find-free-physical-memory-by-dos-command-powershell/

Bookmark this page