«

»

Print this Post

list all processes and their command-line parameters in windows

trying to list all processes and their command-line parameters in windows?

here you go! type this in a cmd prompt:

WMIC /OUTPUT:C:\processes-with-command-line-params.txt PROCESS get Caption,Commandline,Processid

or

WMIC /OUTPUT:C:\processes-with-command-line-params.txt path win32_process get Caption,Processid,Commandline

list all processes and their command-line parameters in windows
what you’re loking for will be in this file –> C:\ProcessList.txt

i’ve also tried this on a Windows 2008 R2 server and for some reason gotten an “Invalid Global Switch” error and I couldn’t figure out why. this might help you to just set the output to CLIPBOARD and then just paste it to a file. For some reason it allowed the command to run when output was CLIPBOARD:

WMIC /OUTPUT:CLIPBOARD PROCESS get Caption,Commandline,Processid

want to know more about the WMIC command? here’s the microsoft technet article

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
list all processes and their command-line parameters in windows was last modified: February 10th, 2015 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/list-all-processes-and-their-command-line-parameters-in-windows/