locked
ps command to get CPU usage RRS feed

  • Question

  • Hi all...

    I am trying to get the current highest CPU usage in server with the following command.

    ps | sort -desc cpu | select - First 10

    The above command will give me the top 10 process utilizing the cpu. Now I want to get the same information from another server which is in same domain.

    like query user/server hostname

    Friday, March 20, 2020 6:42 AM

All replies

  • Why not just read teh help for instructions on how to use a CmdLet?  It is faster than asking questions in a forum and it is right infront of you.

    Try it.

    help ps -online

    help help -online


    \_(ツ)_/

    Friday, March 20, 2020 7:50 AM
  • Hi,

    Maybe you can try this :

    Get-Process -ComputerName windows2019 | sort -Descending cpu | select -First 10



    Really hope that will help you.

    best wishes,

    Young Yang.

    Friday, March 20, 2020 7:55 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Yang Yang
    Tuesday, March 24, 2020 2:05 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Yang Yang
    Thursday, April 2, 2020 5:51 AM