Wednesday, February 3, 2010

Using WMIC to get Windows process information

Someone recently asked "How do I get the command line used to invoke a process with a command line command similar to 'ps -ef' ?" The response came back:



I always use this:

WMIC PROCESS get Caption,Commandline,Processid






That rocks. I never realized that WMIC could do that. My life just got a little brighter.