Still need to support Windows XP. Found this resource regarding WMIC
WMIC /OUTPUT:c:process.txt PROCESS get Caption,Commandline,Processid
This will list out the commandlines for the processid’s. tasklist
would do this as well
Possible Use.
Use with netstat -NO >> c:netstat.txt
to record net connections and see what processes are making them.
I’m sure Powershell would work so much better.