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: 81
Total answers/comments: 5
Guest [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)"
Guest [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
Guest [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.
Guest [Entry]

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

"To kill a process use:

TASKKILL /F /IM processname.exe

For example:

TASKKILL /F /IM firefox.exe"