devnumbertwo - $h!t for developers

View Original

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:

See this content in the original post

or

See this content in the original post

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:

See this content in the original post

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