Skip to content

Instantly share code, notes, and snippets.

@hansgafriedzal
Created July 31, 2024 07:23
Show Gist options
  • Save hansgafriedzal/b6dd4da35d3826313d13ccc4680b70cc to your computer and use it in GitHub Desktop.
Save hansgafriedzal/b6dd4da35d3826313d13ccc4680b70cc to your computer and use it in GitHub Desktop.
Get-Process | select name, cpu, workingset64 | group name | %{
[pscustomobject] @{
name = $_.Name
WorkingSet64 = [math]::round(($_.group | measure workingset64 -Sum | % sum)/1gb, 2)
}
} | sort workingset64 -Descending | select -first 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment