如何在Windows中显示前10个cpu util进程

时间:2016-11-03 17:41:04

标签: windows powershell batch-file

我需要在Windows 2008服务器中显示前10个CPU利用率进程。在powershell中,get-process有cpu输出,但它提供了cpu时间,但没有CPU利用率。我搜索了很多论坛,我发现任何清楚的东西。

1 个答案:

答案 0 :(得分:1)

试试这个

  gwmi Win32_PerfFormattedData_PerfProc_Thread |   ?{$_.Name -notmatch '_Total'} | sort PercentProcessorTime -desc | select -first 10 | ft -auto Name,IDProcess,IDThread,PercentProcessorTime