Answer:How to get the command that invoked a task with tasklist

CMD

wmic process get commandline,processid /format:csv

PowerShell

Get-WmiObject win32_process | select CreationDate,ProcessId,CommandLine|ft -AutoSize

http://superuser.com/a/683052

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.