How to Force Quit a Program on Windows
Close a frozen program on Windows 11 or 10 using Alt + F4, Task Manager's End task button, or the taskkill command when nothing else responds.
A program has stopped responding, its window is greyed out, and clicking the close button does nothing. Windows can end it from the outside without restarting the PC.
Try closing it with the keyboard
Click the frozen window so it is in front, then press Alt + F4. If the program is only slow rather than stuck, this gives it a chance to close normally and save its state. Wait a few seconds before moving on.
Open Task Manager
Press Ctrl + Shift + Esc. Task Manager opens directly, with no menu in between. If the shortcut does nothing, press Ctrl + Alt + Delete and choose Task Manager from the screen that appears.
On Windows 11, Task Manager opens to the Processes page with a sidebar on the left. On Windows 10 the same page is a tab along the top; if you see only a short list of names, click More details at the bottom.
Select the program
Find the program in the Processes list. Frozen programs usually show Not responding next to their name. Click it once to select it.
End the task
Click End task at the top right of the window (on Windows 10 it is at the bottom right). The program closes within a few seconds. Any unsaved work in it is lost, so use this only after Alt + F4 has failed.
If the program still will not close. Open Command Prompt, then run the command below, replacing the name with the program's executable name as shown on Task Manager's Details page:
taskkill /IM program.exe /F
The /F flag forces the process to end. If the process belongs to another user or a system service, open Command Prompt as administrator first.
More Windows how-tos
- How to Boot into Safe Mode on Windows 11
- How to Change DNS Servers on Windows
- How to Change the Default Browser on Windows 11
- How to Check If a Port Is in Use on Windows
- How to Check Which Windows Version You Have
- How to Check Your PC Specs on Windows
- How to Enable Clipboard History on Windows
- How to Find Your IP Address on Windows
- How to Flush DNS on Windows
- How to Free Up Disk Space on Windows 11
- How to Map a Network Drive on Windows
- How to Open Command Prompt as Administrator
- How to Rename Multiple Files at Once on Windows
- How to Show File Extensions in Windows 11
- How to Take a Screenshot on Windows
- How to Turn Off Startup Programs on Windows 11
- How to Turn On Dark Mode on Windows 11
- How to Uninstall a Program on Windows 11
- How to Zip and Unzip Files on Windows