我需要在Windows 2008服务器中显示前10个CPU利用率进程。在powershell中,get-process有cpu输出,但它提供了cpu时间,但没有CPU利用率。我搜索了很多论坛,我发现任何清楚的东西。
答案 0 :(得分:1)
试试这个
gwmi Win32_PerfFormattedData_PerfProc_Thread | ?{$_.Name -notmatch '_Total'} | sort PercentProcessorTime -desc | select -first 10 | ft -auto Name,IDProcess,IDThread,PercentProcessorTime