FAQ: TIPS: WINDOWS: How to find all the process details for a particular executable using command line


wmic process where name=”cmd.exe” get executablepath,Com
mandline,Caption

output:

 Caption CommandLine                   ExecutablePath
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
Advertisements