Skip to content

Instantly share code, notes, and snippets.

@Devwarlt
Created March 5, 2021 17:11
Show Gist options
  • Save Devwarlt/8c3e095118892e49ed7a4f16976ff30b to your computer and use it in GitHub Desktop.
Save Devwarlt/8c3e095118892e49ed7a4f16976ff30b to your computer and use it in GitHub Desktop.
Get a list of total memory used by each process using Powershell.
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