A game that locks up on a black screen, or an app stuck on "Not responding", can leave you staring at a window that won't close. Windows 11 has three built-in ways to force it shut: Task Manager, an End task option on the taskbar and the taskkill command. This guide follows Microsoft's official documentation, plus How-To Geek's walkthrough for Task Manager (credited below).
Method 1: Task Manager
Microsoft says that with Task Manager "you can terminate unresponsive programs". To open it, press Ctrl+Shift+Esc, or right-click Start and select Task Manager. The keyboard shortcut is the one to remember if a full-screen game has frozen on top of everything else.
As How-To Geek's guide describes, select the Processes tab from the left sidebar, find the unresponsive app on the right, right-click it and choose End task. Only end processes you recognise. Our Task Manager guide covers the rest of the tool, and if you want a more detailed view of what each process is doing, see Process Explorer vs Task Manager.
Method 2: End task on the taskbar
Windows 11 can add an End task option to the menu you get when you right-click an app's icon on the taskbar, so you don't need to open Task Manager at all. It's off until you turn it on:
Open Settings and go to System.
Open Advanced. Microsoft says that in Windows 11 version 25H2 and later, the former For developers settings are now on the Advanced page; on earlier versions, look under System > For developers instead.
Turn on End Task, which Microsoft describes as "Enable end task in taskbar by right click".
Now, when an app freezes, right-click its taskbar icon and choose End task. Microsoft notes that on devices managed by an organisation, policies may disable these toggles.
Method 3: taskkill in a terminal
If the desktop is sluggish or you want to close something precisely, use the taskkill command in Terminal, PowerShell or Command Prompt. Microsoft describes it as a tool that "Ends one or more tasks or processes", by process ID or image name.
First, find the process. tasklist lists running processes, and Microsoft's STATUS filter accepts RUNNING, NOT RESPONDING or UNKNOWN, so this shows only frozen ones:
tasklist /fi "STATUS eq NOT RESPONDING"
Then end it by its image name (the .exe name) or by its PID. The /f switch "Specifies that processes be forcefully ended", and /t also ends any child processes the app started:
taskkill /im game.exe /f
taskkill /pid 1234 /f /t
Replace game.exe or 1234 with the name or PID tasklist showed you. You can even end every frozen app in one go by combining taskkill with the same filter. Microsoft says the wildcard character (*) is accepted for /im only when a filter is applied:
taskkill /f /fi "STATUS eq NOT RESPONDING" /im *
Use that one with care, as it will close everything Windows considers unresponsive at that moment, including apps that might have recovered given a few more seconds. If you're new to the command line, start with our Windows Terminal guide.
If apps keep freezing
Force-closing fixes the symptom, not the cause. If a game freezes repeatedly, check Reliability Monitor for a pattern of crashes, and if your screen goes black and recovers with a driver error, see how to fix the display driver stopped responding error. Keeping your graphics drivers up to date is also worth doing.