Skip to content

Instantly share code, notes, and snippets.

@adbertram
Created April 27, 2017 22:13
Show Gist options
  • Save adbertram/1a020d94ee5cdf754353b773b0d54702 to your computer and use it in GitHub Desktop.
Save adbertram/1a020d94ee5cdf754353b773b0d54702 to your computer and use it in GitHub Desktop.
(Get-Counter '\Process(*)\% Processor Time').CounterSamples | where { $_.InstanceName -notin @('idle','system','_total') } | sort cookedvalue -Descending | select -first 5 -Property InstanceName,@{n='Percent';e={[math]::Round($_.CookedValue)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment