Monday, 19 September 2011

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


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:

0 comments:

Post a Comment