0

Is it possible to find the Top 20 processes in Ascending Order in Windows 2008 Server Operating System ?

I got one of the solutions from the below link.....

Is it possible to know the cpu utilization from a script

But i would need a .bat (batch) script for the fetching the Top 20 processes in Ascending Order.

Community
  • 1
  • 1
Driver123
  • 133
  • 1
  • 11

1 Answers1

0

Powershell would be better to do this:

ps | sort -desc cpu | select -first 20 | sort ProcessName

use with Batch:

powershell "ps | sort -desc cpu | select -first 20 | sort ProcessName"
Oli
  • 3,496
  • 23
  • 32