Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a Windows feature or third-party tool that can produce a list of active processes (as in the task manager) with the command line used to start each process.

e.g. if I launch "php.exe -q script.php" in a command line, during the execution of my process, I'd like to see this command in the list and not only "php.exe"

Tasklist, process explorer, taskinfo... can't give this information and/or make it available in a text format. Do you know if such tools/features exist?


share|improve this question
up vote 4 down vote accepted
wmic process list full /format:htable > wmic_task_list.html


wmic process get Name,ProcessId,CommandLine /format:table > wmic_task_list.txt

See wmic process list /format /? or wmic process get /format /? for a list of valid output formats.

share|improve this answer
On my system table worked with normal user rights, while htable as well as the other XSL-based formats required admin privileges. – Ansgar Wiechers Sep 3 '12 at 20:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.