Link to home
Create AccountLog in
Avatar of Geert G
Geert GFlag for Belgium

asked on

list processes cpu, memory of certain programs and users

I'm looking to list info from specific processes by certain users with wmic from a command line on a win2K8R2.

so far, i have this:
wmic /output:wmic_processes.csv process WHERE name="scheduler_05_24_16_x32.exe" list BRIEF /format:csv

output:
Node,HandleCount,Name,Priority,ProcessId,ThreadCount,WorkingSetSize
SERVERNAME,197,scheduler_05_24_16_x32.exe,8,10580,5,870723584
SERVERNAME,197,scheduler_05_24_16_x32.exe,8,11184,5,966139904
SERVERNAME,196,scheduler_05_24_16_x32.exe,8,10800,5,938405888
SERVERNAME,199,scheduler_05_24_16_x32.exe,8,11096,5,954155008
SERVERNAME,196,scheduler_05_24_16_x32.exe,8,9492,5,133869568

Open in new window


now how can i attach the username to this process in this csv file?
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

see

http://www.computerhope.com/wmic.htm

look for username down near the bottom
ASKER CERTIFIED SOLUTION
Avatar of Lucian Constantin
Lucian Constantin
Flag of Romania image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer