Files
tacticalrmm/scripts_wip/Win_Processes_Retrieve_Top.ps1
silversword411 4e5676e80f adding the wip
2021-04-29 11:45:32 -04:00

4 lines
287 B
PowerShell

#Needs Command parameter updates
Get-WmiObject Win32_PerfFormattedData_PerfProc_Process | ` where-object{ $_.Name -ne "_Total" -and $_.Name -ne "Idle"} | ` Sort-Object PercentProcessorTime -Descending | ` select -First 5 | ` Format-Table Name,IDProcess,PercentProcessorTime -AutoSize