🐕
Powershell覚書 --メモリ関連
Get-Processでメモリ使用率ベスト10を抽出する
Get-Process | Group-Object -Property ProcessName |Select-Object "Name", @{n="Memory"; e={($_.Group | Measure-Object "WS" -Sum).Sum}} | Sort-Object "Memory" -Descending |Select-Object -First 10
メモリ使用率
Get-WmiObject Win32_OperatingSystem | %{(($_.TotalVisibleMemorySize - $_.FreePhysicalMemory)/$_.TotalVisibleMemorySize) * 100}
Discussion