What cmdlet can you use in PowerShell to sort CPU usage to 2% and above. I need the output to display only processes with CPU usage 2% and above
我将使用Get-Counter
:
(Get-Counter '\Process(*)\% Processor Time').CounterSamples | ? {$_.CookedValue -ge 2}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.