views:

3955

answers:

8

Is there a command equivalent to 'ps' on Unix that can list all processes on a Windows machine?

+17  A: 

Working with cmd.exe:

tasklist

If you have Powershell:

get-process

Factor Mystic
+1  A: 

If you running windows XP try using the 'tasklist' command. I tried it out with Vista and it seems to also work.

Marcel Tjandraatmadja
+5  A: 

There is a tool called Windows Management Instrumentation Command-line tool (wmic.exe).

You can call "wmic process list" to see all processes.

Paulius Maruška
Neat! It gives the full path of the executable and and lots of other information.
Vulcan Eager
+5  A: 

tasklist or pslist from sysinternals. Also, get-process is amazing from PowerShell.

Hafthor
+1  A: 

If you use Powershell, it has the 'ps' command (it is aliased to Get-Process)

John Channing
+2  A: 

I wanted to mention that WMIC (pam's entry) can do a lot more. Have a look at my WMIC snippets page, which is a cheatsheet showing many of the common ways to use WMIC (with sample output shown):

http://quux.wiki.zoho.com/WMIC-Snippets.html

quux
very good - thank you for the link
Preet Sangha
A: 
  1. Tasklist

  2. WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid

or

 WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline
Ali
A: 

Is there any way to get a task list that also tells the name of the user the process is running as?