locked
Top 10 cpu usage process RRS feed

  • Question

  • Hi,

       how can i retrieve top 10 cpu usage process from powershell.

    Friday, August 28, 2015 5:51 PM

Answers

  • Get-Process | select *,@{N='CPUPC';E={[float]$_.cpu}}|sort CPUPC -desc|select name,CPU -first 10


    \_(ツ)_/

    • Proposed as answer by Elaine Jing Tuesday, September 8, 2015 6:42 AM
    • Marked as answer by Elaine Jing Wednesday, September 9, 2015 10:19 AM
    Friday, August 28, 2015 6:00 PM
  • HELP Get-Counter -full


    \_(ツ)_/

    • Marked as answer by Elaine Jing Wednesday, September 9, 2015 10:21 AM
    Friday, August 28, 2015 6:20 PM

All replies

  • Did you ask a search engine?

    What have you tried? What isn't working?


    Friday, August 28, 2015 5:55 PM
  • 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

    Friday, August 28, 2015 5:56 PM
  • Specifics.

    What's wrong with the output? What did you actually do?


    Friday, August 28, 2015 5:58 PM
  • Get-Process | select *,@{N='CPUPC';E={[float]$_.cpu}}|sort CPUPC -desc|select name,CPU -first 10


    \_(ツ)_/

    • Proposed as answer by Elaine Jing Tuesday, September 8, 2015 6:42 AM
    • Marked as answer by Elaine Jing Wednesday, September 9, 2015 10:19 AM
    Friday, August 28, 2015 6:00 PM
  • i have tried this but the CPU in this is something else, not the one that is coming in task manager
    Friday, August 28, 2015 6:03 PM
  • Different format,different calculation; same meaning.

    You can also use Get-Counter and the same method oof select Top 'N' values.


    \_(ツ)_/

    Friday, August 28, 2015 6:16 PM
  • can you please give me that get-counter thing
    Friday, August 28, 2015 6:19 PM
  • HELP Get-Counter -full


    \_(ツ)_/

    • Marked as answer by Elaine Jing Wednesday, September 9, 2015 10:21 AM
    Friday, August 28, 2015 6:20 PM