Response Part II:
Seems This Works, I believe..
for each Process in GetObject("winmgmts:").ExecQuery("Select * from Win32_Process")
WScript.echo Process.name & " " & CPUUSage(Process.Handle) & " %"
Next
Function CPUUSage( ProcID )
On Error...
Here's a clue.
The thing I don't like is you've got to use both Win32_Process (for KernalModeTime) and Win32_PerfFormattedData_PerfProc_Process for CPUUsage. But if you are willing to give up some of the details including KernalModeTime (and command line and ...) you can get everything you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.