Created
July 31, 2024 07:23
-
-
Save hansgafriedzal/b6dd4da35d3826313d13ccc4680b70cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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