Created
March 5, 2021 17:11
-
-
Save Devwarlt/8c3e095118892e49ed7a4f16976ff30b to your computer and use it in GitHub Desktop.
Get a list of total memory used by each process using Powershell.
This file contains 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 -computername $env:computername | Group-Object -Property ProcessName | Format-Table Name, @{n='Mem (KB)';e={'{0:N0}' -f (($_.Group|Measure-Object WorkingSet64 -Sum).Sum / 1KB)};a='right'} -AutoSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment