Skip to content

Instantly share code, notes, and snippets.

@gardar
Created May 19, 2020 10:31
Show Gist options
  • Save gardar/8537a52345e2b96df549f314855bb8f5 to your computer and use it in GitHub Desktop.
Save gardar/8537a52345e2b96df549f314855bb8f5 to your computer and use it in GitHub Desktop.
  Where-Object Name -contains check_mk_agent.exe | 
  Select-Object ProcessID, Name, Path, UserModeTime, KernelModeTime |
  Format-Table -AutoSize
ProcessID Name               Path UserModeTime KernelModeTime
--------- ----               ---- ------------ --------------
     3216 check_mk_agent.exe         166250000      210625000

tasklist /v /fi "imagename eq check_mk_agent.exe"

Image Name                     PID Session Name        Session#    Mem Usage Status          User Name                                              CPU Time Window Title
                                                            
========================= ======== ================ =========== ============ =============== ================================================== ============ ============
============================================================
check_mk_agent.exe            3216 Services                   0      8.108 K Unknown         N/A                                                     0:00:37 N/A   

(166250000+210625000)/10000000 = 37.6875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment