How can I get the CPU consumption of all threads running in a process thru powershell, in a format similar to this
I can't find any processor information when I run gwmi win32_thread|select -First 1
. And the Start Address
is numeric !?!
This is working fine with PowerShell 7.3.3
(Get-Process -ProcessName taskmgr).Threads|Sort-Object TotalProcessorTime -Descending|
Format-Table -Property Id,PriorityLevel,ThreadState,WaitReason,StartTime,TotalProcessorTime
Output