How to save a list of running processes to a file in Windows
Sometimes, it seems that there are so many processes running on the computer that you're not sure if everything is okay. It is very likely that something suspicious or malicious has appeared on the system.
The first step you should take is to create a list of running processes and put them into a text file, so you can analyze which processes are running. Normally, people use Task Manager to view all processes, but this tool does not allow you to print a list of processes.
Thankfully, saving a list of running processes to a text file in Windows is very simple. You can save both the process ID (PID) and the size of each process in use.
Note : The steps below to save progress to an active file for all versions of Windows, including Windows XP, Windows 7, Windows 8 and Windows 10.
Export the list of processes from the Tasklist command
The easiest way to get a quick list of processes running on a Windows system is to use the tasklist command. To run the command properly, you need to run it from the Command Prompt with admin rights.
Once the Command Prompt is opened, enter tasklist and click Enter
to see a list of the processes running on the system.
This tool is very useful, but it does not give you a list of running processes in a text file. To save the process to the file, repeat the process above, but this time type the command:
tasklist > c:process_list.txt
This command will export a text file named process_list.txt to drive C :. You can change C: to any other path you want to put the file, if you like.
To view the file, just open Windows Explorer and browse to the location where you saved the process list file.
To view the list of processes in Notepad, right-click the file, select Open with> Notepad .
Select Open with> NotepadThis is the quickest and easiest way to see the processes running in Windows through a text file. It will show you the PID, session name, session number and memory usage.
Save progress to file using Powershell
Another tool that you have available to save the list of running processes to a text file in Windows is Powershell.
Powershell includes a command called get-process that provides a list of all processes running on the local computer. To see this in practice, launch Powershell by selecting the Start menu and entering Powershell.
When the blue Powershell window opens, enter get-process and click Enter
. This will display a list of all processes that are active on the Windows system.
This gives a little more information about the processes compared to the tasklist. However, you need to know the meaning of the headers.
- Handles: The number of handles the process has opened
- NPM (K): Non-paged memory (not paged) that the process is using (in kilobytes)
- PM (K): Pageable memory that the process is using (in kilobytes)
- WS (K): Pages in memory recently used (in kilobytes)
- VM (M): Virtual memory used by processes (in megabytes)
- CPU (s): Processing time used by processes on all processors (in seconds)
- ID: The process ID
- ProcessName: The process name
This is great, but all the information is displayed on the screen, not in a file. To export this information to a file, you need to add the Out-File parameter to the Get-Process command .
Return to the Powershell screen, type the following command and press Enter
:
Get-Process | Out-File -FilePath .Process_list.txt
The .Process_list.txt parameter places the file in the path where you run the command, so note that path to know where to find the process list file. After you run the command, use the same process as above to open the process list file in Notepad.
Process list file in NotepadYou will notice that the data in the file looks identical to the Get-Process output in the previous Powershell window.
Save progress to file using WMIC
The last tool you have in Windows is the Windows Command Line Utility (WMIC).
You can only use WMIC commands if you are running the Command Prompt with local admin rights. To do this, use the steps in the first section of this article to launch the Windows Command Prompt with admin rights.
WMIC gives you more information about operating processes than any other command or tool in Windows. If you only run the WMIC Process command in the Command Prompt, you will see a maximum of 44 parameters are returned for each active process.
The problem with running a command in the Command Prompt is that the output is separated by cluttered and disorganized spaces.
The output is very messyThe WMIC command is a perfect example of when the output file becomes useful. You can export a list of WMIC processes to a file with the command:
wmic /OUTPUT:C:ProcessList.txt PROCESS get /all
This will export the whole list into a text file on the C :, drive called ProcessList.txt. Instead of opening this file in Notepad, you'll want to open the file in Excel, because Excel can properly format files delimited by tabs.
1. Open Excel.
2. Select Open to open the new file
3. Select Browse and browse to the ProcessList.txt file
4. Select the file and click Open (if you do not see the file, change the file type to All Files ).
5. In the Text Import Wizard window , select Delimited> My data has headers> Next to continue.
Select Delimited> My data has headers> Next6. In the next wizard screen, select the Space check box in the Delimiters section and select the Treat consecutive delimiters as one checkbox . Click Next to continue.
Select the Space and Treat consecutive delimiters as one checkbox7. Select Finish to complete.
Now you will see everything you need to know about all the processes that work on your Windows system.
You will see everything you need to know about all the processes that work on Windows systemsYou should read it
- The To-do List is good, the Done List is very good, but the Do-Not-Do List is much better
- How to find the Process ID of the application on Windows 10
- What is the Host Process for Windows Tasks and why does it run much on the computer?
- How to Make a Process Document
- 7 Task Manager processes that should never end
- How to copy the file list of folders with the right mouse button
- 9 tools to support faster copy process in Windows environment
- The exit () function in C
- How to save web page in Chrome as a PDF file?
- Learn about System Idle Process
- Summary of how to fix 'The process com.google.process.gapps has stopped' on Android device
- How to transfer old device drivers to a new Windows PC
Maybe you are interested
9 ways to fix the error of not being able to save files as JPEG or PNG in Photoshop
Download standard and beautiful Word file experience initiative cover template
How to use the file search command on Windows, find saved files
How to split sheet into multiple separate Excel files
How to merge PDF files, merge and join multiple PDF files into a single file
How to clean up iPhone junk, delete junk files to free up iPhone storage