Home » Questions » Computers [ Ask a new question ]

How do you list all processes on the command line in Windows?

How do you list all processes on the command line in Windows?

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

Asked by: Guest | Views: 386
Total answers/comments: 5
bert [Entry]

"Working with cmd.exe:

tasklist

If you have Powershell:

get-process

Via WMI:

wmic process

(you can query remote machines as well with /node:ComputerOrIP, and there are a LOT more ways to customize this command: link)"
bert [Entry]

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) here
bert [Entry]

tasklist or pslist from sysinternals. Also, get-process is amazing from PowerShell.
tasklist or pslist from sysinternals. Also, get-process is amazing from PowerShell.
bert [Entry]

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

"To kill a process use:

TASKKILL /F /IM processname.exe

For example:

TASKKILL /F /IM firefox.exe"