3

What is the query used to view the topmost process which is having maximum usage of CPU using WMI?

RRUZ
  • 134,889
  • 20
  • 356
  • 483
Developer404
  • 5,716
  • 16
  • 64
  • 102

1 Answers1

2

Use Win32_PerfFormattedData_PerfProc_Process class.

Select IDProcess, Name, PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

Once you have those informations you can sort by PercentProcessorTime. It should work fine.

raz3r
  • 3,071
  • 8
  • 44
  • 66