I'm getting the below output from the command tasklist /fi "imagename eq cmd.exe"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
cmd.exe 16156 Console 1 2,636 K
cmd.exe 12484 Console 1 2,396 K
cmd.exe 49628 Console 1 2,852 K
cmd.exe 42664 Console 1 2,824 K
cmd.exe 49956 Console 1 3,288 K
I saw an option to search by WindowTitle, but is there any option to get that WindowTitle column in the output?
Ok I just found an answer using /V, it provides also the window title.
tasklist /fi "imagename eq cmd.exe" /v