Today I'm going to write a simple PoweShell Code which can help us to quickly list top 10 high CPU usage list in our environment.
Just by copying this code and pasting it in your PowerShell Windows will list the CPU usages.
::: NOTE :::
By changing the value of -First "0" you wil be able to get the desired number of the CPU usage list
Code: Select all
Get-Process | Sort-Object CPU -Descending | Select -First 10