To force close a frozen window on Windows 11, click it and press Alt + F4. If that fails, press Ctrl + Shift + Esc, select the app in Task Manager and choose End task. For stubborn apps, use the taskbar End task option or run taskkill in Terminal.
The app’s title bar says Not Responding, the X does nothing, and the spinning cursor keeps circling over a window you just want gone. Start with the gentlest fix.
Before You Force Close: Wait a Minute and Save What You Can
“Not Responding” doesn’t always mean the app is dead. Windows shows it when a program stops answering for a few seconds, which can happen while it saves a large file, finishes an export or waits on a slow network drive. Giving it 30 to 60 seconds sometimes saves you from losing work.
Force closing ends the program without letting it save. Anything you typed since the last save in that app is at risk, and other open apps aren’t affected. Before you start:
- Save your work in every other open app, in case you need to restart later.
- If the frozen app is a Microsoft 365 app such as Word or Excel, know that it may offer to recover your file the next time you open it (covered at the end).
- If a progress bar or a dialog box is showing, look behind other windows. A hidden “Save changes?” prompt can make an app look frozen. Alt + Tab cycles through open windows and can reveal it.
If the window isn’t frozen at all, just sitting where you can’t reach it, the fix is different: see moving a window that’s off screen in Windows 11.
Method 1: Press Alt + F4
Alt + F4 asks the active window to close, the same as clicking the X. It’s the gentlest option, since well-behaved apps get a chance to ask if you want to save.
- Click inside the frozen window, or on its title bar, to make it the active window.
- Press Alt + F4. On laptops where the F keys control volume or brightness, you may need Alt + Fn + F4.
- Wait a few seconds. If Windows shows a message that the program isn’t responding, choose Close the program (or wait, if you’d rather give it more time).
Be careful where the focus is. If no window is active and you press Alt + F4 on the desktop, Windows opens the Shut Down Windows box instead. Press Esc or choose Cancel if that happens. The Windows keyboard shortcuts list describes both behaviors.
Method 2: End the Task in Task Manager
Task Manager stops the program directly, without waiting for it to cooperate. This is the standard fix for an app that ignores Alt + F4.
- Press Ctrl + Shift + Esc. Task Manager opens.
- If it opens as a small window with only a list of apps, select More details.
- On the Processes page, find the app under Apps. Frozen apps often show “Not responding” in the Status column.
- Select the app, then choose End task at the top of the window, or right-click it and choose End task.
- The window should disappear within a few seconds.
If Ctrl + Shift + Esc does nothing, press Ctrl + Alt + Delete and choose Task Manager from the full-screen menu. That screen is handled separately by Windows, so it often works when the desktop isn’t responding. There are other ways to get in too, listed in opening Task Manager in Windows 11.
Leftover Processes on the Details Page
Some apps run several processes, and ending the main window doesn’t always end the rest. If the app won’t reopen, or Task Manager still shows it after you close it:
- In Task Manager, open the Details page from the left menu.
- Sort by Name and look for the app’s file name, such as
photoeditor.exe. - Right-click it and choose End task. Some versions also offer End process tree, which closes the process and anything it started.
Only end processes you recognize. Ending a Windows system process can sign you out or force a restart. If you’re unsure what a process is, checking which apps run in the background helps you sort the names.
When the App Is Full Screen
Games and full-screen video apps can cover Task Manager even after it opens. Press Ctrl + Shift + Esc, then Alt + Tab to bring Task Manager to the front, or press Windows key + D to show the desktop first. In Task Manager’s settings, you can also turn on Always on top so it stays above full-screen apps.
Method 3: End Task From the Taskbar
Windows 11 can add an End task option to the menu you get when you right-click an app’s taskbar icon. It’s off by default and sits on a page meant for power users, but you don’t need to be a developer to use it. Microsoft announced the taskbar End task option in 2023 as a switch on the For developers settings page. Microsoft’s Advanced settings documentation says that page is now called Advanced, with the former For developers settings under it in Windows 11 version 25H2 and later.
- Open Settings and select System.
- Select Advanced (called For developers before Windows 11 version 25H2).
- Under Taskbar, turn on End Task (its description reads “Enable end task in taskbar by right click”). If you can’t find it, type “End task” in the Settings search box.
- Right-click the frozen app’s icon on the taskbar and choose End task.
This is the fastest route once it’s set up, since it skips Task Manager. If your PC is managed by work or school, the switch may be greyed out or missing.
Method 4: Close It With taskkill in Terminal
Command line tools are useful when Task Manager won’t cooperate, or when you want to close several stuck apps at once. Microsoft’s taskkill reference lists Windows 11 and Windows 10 among the supported versions.
- Right-click Start and choose Terminal. For apps running as administrator, choose Terminal (Admin) instead.
- Type
tasklistand press Enter to see running programs with their image names (file names) and PIDs (process ID numbers). - To end a program by name, type
taskkill /IM photoeditor.exe /F, replacing the file name with the one from the list, and press Enter. - To end one specific copy, use its PID instead:
taskkill /PID 4812 /F.
What the switches mean:
| Switch | What it does |
|---|---|
| /IM | Picks the process by image name, such as notepad.exe |
| /PID | Picks the process by its ID number from tasklist |
| /F | Ends it forcefully instead of asking it to close |
| /T | Also ends any child processes the program started |
Close Every Not Responding App at Once
taskkill can filter by status. This command ends every app Windows marks as not responding:
taskkill /F /FI "STATUS eq NOT RESPONDING" /IM *
Use it with care. It closes everything that’s frozen at that moment, including an app that’s only busy saving, and you can’t get unsaved work back.
If you prefer PowerShell, Microsoft’s Stop-Process page shows the equivalent: Stop-Process -Name "photoeditor" (no .exe) or Stop-Process -Id 4812. Adding -Force skips the confirmation prompt Windows shows for processes you don’t own, though it doesn’t get around Access is denied.
If you get “Access is denied,” the app is running with administrator rights. Close the window and open an elevated prompt, as described in running Command Prompt as administrator.
When the Taskbar or the Whole PC Is Frozen
The Taskbar, Start Menu or Desktop Won’t Respond
The taskbar, Start menu and File Explorer windows all belong to one process, Windows Explorer. If those freeze while other apps still work, restart Explorer instead of the PC.
- Press Ctrl + Shift + Esc.
- On the Processes page, select Windows Explorer and choose Restart.
- The taskbar disappears for a moment and comes back.
If the taskbar never comes back, use Run new task in Task Manager, type explorer.exe and select OK. Microsoft’s blank screen troubleshooting page uses the same steps. For a taskbar that’s hidden rather than frozen, see getting the taskbar back in Windows 11.
Nothing Responds at All
- Press Ctrl + Alt + Delete. If the full-screen security menu appears, choose Task Manager and end the app, or choose Sign out to close all your apps at once.
- If the screen went black or froze on a picture, press Windows key + Ctrl + Shift + B to restart the graphics driver. It won’t unfreeze a hung app, but it can bring back a display that went blank.
- From the Ctrl + Alt + Delete screen, the power icon in the lower right corner offers Restart.
- Only if none of that works, press and hold the physical power button until the PC turns off, wait a few seconds, and turn it back on.
Holding the power button is the last resort. It skips the normal shutdown, so all unsaved work is lost, and an app that was writing a file at that moment can leave it damaged.
Get Your Work Back After a Force Close
Many apps keep their own recovery copies. Reopen the app before you open anything else and look for a recovery prompt.
For Word, Excel and PowerPoint, Microsoft’s page on recovering your Microsoft 365 files explains the Document Recovery pane. It appears the next time you open the app after an unexpected close and can list the last version you saved, the last AutoSave version (for files stored in OneDrive or SharePoint) and versions saved automatically by AutoRecover. Open each one, choose the most complete, and save it under a new name.
Worked example: Priya’s spreadsheet app freezes while she’s pasting a large table. Alt + F4 brings up the not responding message, she waits a minute with no change, then ends the task in Task Manager. When she reopens Excel, the Document Recovery pane lists an AutoRecover copy from a few minutes earlier, so she loses only the last paste.
Stop the Same App Freezing Again
One freeze is usually a fluke. Repeated freezes have a cause you can often find.
- Update the app. Check the app’s own update option or the Microsoft Store Library page.
- Run Windows Update. Settings, then Windows Update, then Check for updates. Install optional driver updates if the freezes involve graphics or a device.
- Check Reliability Monitor. Press Windows key + R, type
perfmon /reland press Enter. Red marks labeled “Stopped working” or “Hang” show which app fails and how often. More on reading these logs is in checking error logs on Windows 11. - Watch memory and disk. In Task Manager’s Performance page, memory or disk use pinned near 100 percent makes apps hang. Closing browser tabs or trimming startup apps helps; speeding up a slow Windows 11 PC covers more.
- If the whole PC freezes often, not just one app, open Terminal (Admin) and run
DISM.exe /Online /Cleanup-image /Restorehealthand thensfc /scannow, in that order, as Microsoft’s System File Checker page describes. - Reinstall the app if it freezes even after updates, and contact its developer if the problem continues.
Force-Close Questions
Is force closing bad for my computer?
Ending an app in Task Manager doesn’t harm Windows or your hardware. The risk is to the app’s unsaved data, and occasionally to a file it was in the middle of writing. Holding the power button is riskier, since every app and Windows itself stop mid-task.
Why does End task do nothing?
The app may be waiting on a hidden dialog, running as administrator, or stuck on a device or network drive. Try End task on the Details page, then taskkill with /F from an elevated Terminal. If even that fails, sign out or restart.
What’s the difference between End task and End process tree?
End task closes one process. End process tree (on the Details page, where available) also closes every process that one started, which helps with apps that leave helper processes behind.
Can I use these steps on Windows 10?
Yes. Alt + F4, Task Manager and taskkill work the same way. The taskbar End task option is a Windows 11 feature.
Why does Task Manager say “Not responding” and then the app recovers?
It was busy, not frozen. If that happens a lot with one app, it’s worth checking for updates or a heavy plugin before you reach for End task next time.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.