Windows: Get a List of All Running Processes from the Command Line

Posted August 6, 2008 by Rob Rogers in Windows

If you need to get a quick list of running processes on your computer or another computer on your network, you can use the Windows Instrumentation command-line interface (WMIC) to quickly generate this. You can even generate a text file so you can print the list if need be. This Tech-Recipe applies to Windows XP Professional, Windows Vista, Windows Server 2003 and Windows Server 2008.


1. Open a command prompt.

2. Execute the following command:
wmic process get description,executablepath

To list the processes on another computer, execute the following command:
wmic /node: process get description,executablepath

Where computer name is the name of the desired computer.

to generate a textfile, execute the following (make sure to change the output path to your liking):

Your computer:
wmic /output:d:\process.txt process get description,executablepath

Another computer:
wmic /node: /output:d:\process.txt process get description,executablepath

Your results will look something like this:

Tasklist is another method for doing this as well.

 

About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.

  • Thanks. I was also able to get only specific processes by

    wmic process get description, executablepath | findstr process-name

  • A

    Command to view processes on a remote computer:

    wmic /node:COMPUTERNAME process get description,executablepath

    Where COMPUTERNAME is the name of the remote computer.

  • Terry

    Can we also kill the processes with some command? Like kill the same process in multiple computers at the same time?

  • jk

    Terry, I found a technet article that answers your questions.

    technet.microsoft.com/en-us/library/bb742610.aspx

  • Valerian Crasto

    gr8, it helps me lot… thnx 🙂

  • Awais Azeem

    Dear,
    I am having some jar files running on windows server i want to list all running jar files and that jar files physical local on server.Kindly Do help me.I have am able to get running jar files using wmic but not able to get the phisical local of jar files.

  • raghu

    hi am need a jar file for WMIC to run with java in eclipse environment…pls help me