The Computer Oracle

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

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:21 Accepted answer (Score 459)
00:55 Answer 2 (Score 92)
01:13 Answer 3 (Score 31)
01:36 Answer 4 (Score 22)
01:57 Thank you

--

Full question
https://superuser.com/questions/914782/h...

Accepted answer links:
[tasklist]: http://ss64.com/nt/tasklist.html
[Powershell]: https://docs.microsoft.com/en-us/powersh...
[get-process]: https://docs.microsoft.com/en-us/powersh...
[link]: https://quux.wiki.zoho.com/WMIC-Snippets...

Answer 2 links:
[Windows Management Instrumentation Command-line tool (wmic.exe)]: http://msdn.microsoft.com/en-us/library/...

Answer 3 links:
[here]: http://quux.wiki.zoho.com/WMIC-Snippets....

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #commandline

#avk47



ACCEPTED ANSWER

Score 470


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)




ANSWER 2

Score 92


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

You can call wmic process list to see all processes.




ANSWER 3

Score 32


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




ANSWER 4

Score 22


  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