You can list running processes on a Windows computer using the Command Prompt or PowerShell by typing the command tasklist or Get-Process and pressing Enter. These tools show the name, PID, session name, and memory usage of every active application or service on the system. This guide explains the standard commands, how to filter and sort output, and how to interpret the results for troubleshooting.

What You'll Need

  • A computer running Windows 10 or Windows 11.
  • A user account with administrative privileges (to see all system processes).
  • A keyboard and mouse (or a remote desktop connection).

Step-by-Step

  1. Open the Command Prompt or PowerShell. You can open Command Prompt by searching for "cmd" in the Start menu and selecting the application. Alternatively, you can open PowerShell by searching for "PowerShell" in the Start menu. Both tools allow you to run commands to inspect the system.
  2. Run the list command. In the Command Prompt window, type tasklist and press Enter. In PowerShell, type Get-Process and press Enter. The system will immediately display a table of all currently running processes. Each row represents a single process, and the columns show the Process Name, PID, Session Name, and Memory Usage.
  3. Understand the default output columns. The default output of tasklist provides four main pieces of information. Image Name is the name of the executable file (e.g., chrome.exe or svchost.exe). PID stands for Process Identifier, a unique number for each process. Sess Name identifies the console session the process is running in. MEM Usage shows the amount of physical memory (RAM) the process is currently using.
  4. Filter processes by name. To find a specific program, you can filter the list. In Command Prompt, use the /FI switch. For example, type tasklist /FI "IMAGENAME eq chrome.exe" and press Enter to see only Google Chrome processes. In PowerShell, you can use a where clause. For example, type Get-Process | Where-Object {$_.ProcessName -eq "chrome"} to achieve the same result.
  5. Sort the output. Command Prompt has a built-in sort command. To sort processes by memory usage in descending order, type tasklist /V | sort /R +5 and press Enter. This command first displays the verbose output with the /V flag and then pipes the result to the sort command, sorting the sixth column (memory usage) in reverse order.
  6. Terminate a process from the command line. If a program is unresponsive, you can close it using the command. In Command Prompt, type taskkill /PID 1234 /F and press Enter, replacing 1234 with the actual Process ID of the program you want to close. The /F flag forces the termination. In PowerShell, you can use the Stop-Process cmdlet. For example, type Stop-Process -Id 1234 -Force to achieve the same result.
  7. Use PowerShell for more advanced filtering. PowerShell offers more powerful ways to inspect processes. To find processes consuming more than 100 megabytes of memory, type Get-Process | Where-Object {$_.WorkingSet -gt 100MB} and press Enter. This command filters the list of all processes and returns only those with a working set size greater than 100 megabytes.

Common Mistakes

One common mistake is attempting to list processes without administrative privileges. Standard user accounts cannot see system-level services like smss.exe or csrss.exe. If the output seems incomplete, ensure you are running the command prompt as an administrator by right-clicking the icon and selecting "Run as administrator." Another mistake is misinterpreting the memory usage column. The value shown is the current working set, not the peak memory usage. To see the peak memory usage, use the /V flag in Command Prompt or the PeakWorkingSet property in PowerShell.

Tips

When troubleshooting performance issues, it is helpful to sort processes by memory usage to identify memory leaks. If a specific program is causing trouble, use the name filter to isolate its activity. Remember that tasklist is the standard command for Command Prompt, while Get-Process is the PowerShell cmdlet. Both serve the same purpose but offer different syntaxes and capabilities. For quick visual checks, the Task Manager is often faster, but the command line provides precise filtering and scripting options.

Troubleshooting

If the command does not return any results or produces an error, first verify that you are using the correct command syntax. Ensure that you are not missing a closing parenthesis or a quote in PowerShell. If the command runs but does not show the expected processes, check your user permissions. You must be an administrator to view system processes. If you are using tasklist and the output is cut off due to a long list, you can redirect the output to a text file for easier viewing. Type tasklist > processes.txt and press Enter to save the list to a file in the current directory.

Frequently Asked Questions

What is the difference between Task Manager and the command line?

Task Manager provides a graphical interface with tabs for performance, processes, and startup items. The command line offers a text-based interface that is faster for scripting and filtering large lists of processes.

How do I find the PID of a process?

The PID is listed in the PID column of the output. You can also find it in the Details tab of Task Manager for any specific process.

Can I use these commands on Windows Server?

Yes, the commands tasklist and Get-Process are available on all versions of Windows, including Windows Server editions.

What does the /F flag do in taskkill?

The /F flag stands for force. It tells the command to terminate the process immediately, even if the program tries to stop itself.

Why do I see multiple instances of a process?

Some applications run multiple instances to handle different tasks. For example, a web browser might have separate processes for each open tab.

Is it safe to terminate system processes?

Terminating system processes like csrss.exe or winlogon.exe can cause the computer to become unstable or shut down. Only terminate processes that you are sure are causing problems.