The Computer Oracle

What's the easiest way to save Task Manager's Processes tab as a CSV file?

--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Intrigue Looping

--

Chapters
00:00 Question
00:40 Accepted answer (Score 41)
01:43 Answer 2 (Score 2)
02:13 Thank you

--

Full question
https://superuser.com/questions/209555/w...

--

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

--

Tags
#windows #microsoftexcel #taskmanager

#avk47



ACCEPTED ANSWER

Score 45


You can't do this using the task manager itself, but you can use the built-in tasklist command line program to do it. Open a command prompt (cmd.exe) and use the following commands:

  • Type tasklist to output a list of all the currently running processes
  • To output as a csv, type tasklist /FO csv
  • To save the output of the command line to a file, add > filename.csv to the end of the command; for example, tasklist /FO csv > "%userprofile%\desktop\tasks.csv".

For full documentation on the various options for what to output, type tasklist /? into the command prompt.




ANSWER 2

Score 2


One line in CMD

Replace <username> to your user name and run in cmd:

tasklist /v /FO csv > "C:\Users\<username>\Documents\tasks.csv"

For more documentation info go here:

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist