Sometimes, apps or background services in Windows 11 just won’t cooperate — they freeze, stop responding, or continue running silently even after you close them. This can slow down your system, eat up memory, and cause performance issues.
In such cases, the Command Line (CMD or PowerShell) can be your best friend. It gives you full control to identify and terminate misbehaving processes instantly — without needing to open Task Manager or restart your computer.
In this detailed guide, we’ll walk you through different ways to kill or stop processes using CMD, PowerShell, and WMIC, explain what each command does, and provide a few pro tips for handling stubborn background tasks.
What Does “Killing a Process” Mean?
Every running application or background service in Windows is called a process. When you close a program normally, Windows sends it a signal to stop gracefully — saving any unsaved data and freeing up resources.
However, when a process becomes unresponsive, it may ignore those signals and remain stuck in memory. “Killing” a process means forcefully ending it immediately, without giving it a chance to clean up. It’s a powerful command — and one you should use carefully.
Developers, IT admins, and even regular users rely on this method to stop frozen apps, terminate scripts gone rogue, or end background tools that keep consuming CPU or memory.
Method 1: Kill a Process Using Taskkill Command (CMD)
The Taskkill command is built into Windows and provides a fast way to end processes directly through the command line.
- Open Command Prompt as Administrator
- Press Windows + S, type
cmd. - Right-click Command Prompt → choose Run as administrator.
- Press Windows + S, type
- View All Running Processes
- Type the following command:
tasklist - This displays a table of all active processes, including names, PIDs, and memory usage. You can use this list to find the app that’s stuck.
- Type the following command:
- Kill a Process by Name
- To end a specific process, type:
taskkill /IM processname.exe /F - Example:
taskkill /IM notepad.exe /F - The
/IMflag targets the process by name, while/Fforces it to terminate.
- To end a specific process, type:
- Kill a Process by PID
- Sometimes multiple instances of the same app are running. Use the PID instead:
taskkill /PID 1234 /F - Replace
1234with the actual Process ID from yourtasklist.
- Sometimes multiple instances of the same app are running. Use the PID instead:
Pro Tip: You can even terminate multiple processes at once:
taskkill /IM chrome.exe /IM msedge.exe /F
This will close both Chrome and Edge instantly.
Method 2: Kill a Process Using PowerShell
PowerShell is a more modern and powerful alternative to CMD. It lets you manage system processes using object-based commands, which are cleaner and more flexible.
- Open PowerShell as Administrator
- Press Windows + X, then click Windows PowerShell (Admin).
- List All Running Processes
- Type:
Get-Process - This shows process names, PIDs, and resource usage.
- Type:
- Kill a Process by Name
- Use:
Stop-Process -Name "notepad" -Force
- Use:
- Kill a Process by PID
- Type:
Stop-Process -Id 4567 -Force
- Type:
- Kill Multiple Processes Automatically
- Example:
Get-Process | Where-Object {$_.CPU -gt 50} | Stop-Process -Force - This kills all processes using more than 50 CPU seconds.
- Example:
PowerShell is especially handy if you frequently work with batch scripts or want to automate system maintenance tasks — such as clearing resource-hogging processes on boot.
Method 3: Kill Processes Using WMIC Command
Although WMIC (Windows Management Instrumentation Command-line) is deprecated in newer versions of Windows 11, it’s still available and quite powerful for administrative scripting.
- Open Command Prompt as Administrator.
- Type this command to kill a specific process:
wmic process where "name='notepad.exe'" delete - Hit Enter — all instances of Notepad will be terminated immediately.
Note: WMIC allows you to target multiple processes with more complex conditions, such as killing all processes that use a specific amount of memory or CPU.
Wrapping Up
Killing processes from the command line isn’t just for IT professionals — it’s a skill every Windows user should know. Whether you’re dealing with a frozen app, a CPU-hogging process, or just want to automate cleanup tasks, CMD and PowerShell offer reliable tools for the job.
Once you get comfortable with taskkill and Stop-Process, you’ll never have to rely solely on Task Manager again. It’s faster, cleaner, and gives you total control over your Windows system.
So the next time your PC starts acting up, skip the panic — open CMD, type one line, and end that stubborn process like a pro.