Hi,
how can i retrieve top 10 cpu usage process from powershell.
Technology Tips and News
Hi,
how can i retrieve top 10 cpu usage process from powershell.
Did you ask a search engine?
What have you tried? What isn't working?
i banged my head and also tried search engine, but none of them giving me the right answer
1) get-process
2) WMI
I have tried with these 2 , but i cannot get the desired output
Specifics.
What's wrong with the output? What did you actually do?
Get-Process | select *,@{N='CPUPC';E={[float]$_.cpu}}|sort CPUPC -desc|select name,CPU -first 10
Different format,different calculation; same meaning.
You can also use Get-Counter and the same method oof select Top 'N' values.
HELP Get-Counter -full