Ways to force close a program

Have you ever had a program on your computer suddenly stop responding? The cursor turns into a colored circle or hourglass, and the window freezes and cannot be closed. People call this “freezing.” It's an unpleasant situation, but a very common one.

Geekbuying WWGeekbuying WW

When closing the program using the cross icon doesn't help, more drastic methods come to the rescue. Don't immediately pull the plug out of the socket — this is a last resort that can damage the system. It is much better and safer to use the tools built into Windows, which are designed for just such cases.

In this article, we will look at several simple and effective ways to help you “kill” a frozen program. You will learn how to use Task Manager, the command line, and other utilities to regain control of your computer without unnecessary panic.

Method 1: Task Manager

Redmagic WWRedmagic WW

If the program is not responding, has frozen, or cannot be closed in the usual way, you can use the pre-installed Windows feature. “Task Manager” to force quit a process:

  1. Call “Task Manager”. Connecting an M.2 SSD from a laptop to a computer

    If the system does not respond along with the problematic program, use the key combination “Ctrl + Shift + Esc” to launch the tool directly or Ctrl + Alt + Delete, to open a special menu in the operating system.

  2. First, look for the program you need to force close in the section “Processes”. Select it and click on the button “End task”.

    If an arrow icon is displayed next to the process, it means that there are still subtasks. If you close the main process, they will also be closed. You can turn off only some processes from the branch, for example, this applies to open browser tabs.

  3. Sometimes it also helps to force quit the processes on the “Information” (in Windows 11) or “Details” (in Windows 10). Switch to it, then find all the processes related to the problematic software in the list and disable them in the same way (select the process and click the button “End Task”/There are also simpler options: for example, simply disconnecting it by pulling it out of the SATA connectors.. Block. If necessary, confirm the completion of the task in the warning window.

It is worth mentioning a few nuances that are directly related to the forced termination of programs in Windows, which may be important for some people:

  • if you were working in the program that froze, for example, a graphics editor and a project developed in it, or a text document in Word, then all changes will most likely be lost, provided that the application does not use the auto-save function.
  • after forcibly terminating some system processes, operating system malfunctions are possible.
  • sometimes, manually completed tasks restart automatically after a while, which indicates not only that this is an important system process, but also a virus running in the background.

Sometimes programs freeze or do not respond to closing — in such cases, forced termination methods help. The easiest way is to press the Ctrl+Alt+Delete key combination and select the program you want to close through the task manager. You can also use the Task Manager by right-clicking on the taskbar or pressing Ctrl+Shift+Esc. If the application still does not respond, the only option is to force it to close — this is safe, but any unsaved data may be lost. The main thing is not to panic and to proceed step by step.

Method 2: Command Prompt

Noracora WWNoracora WW

Integrated into all versions of the Windows operating system “Command Prompt”, through which you can also force the application to close using special requests:

  1. Run the console with elevated privileges using the system search bar or the items in the main menu. In the first case, enter the query cmd and select “Run as administrator”.
  2. In the window that opens, enter the command taskkill /im program_file_name.exe /f /t, where you need to enter your value under the file name, adding its extension at the end. Press the key “Enter”, to execute it.

Please note that not only the main process will be forcibly terminated, but also all tasks associated with it (i.e., child processes).

If you have the program open in several windows at once (for example, different browser tabs in separate windows), all of them will be closed at once. In cases where you need to close only one of the processes, you can use the command taskkill /pid Process ID /f /t, where under “Process ID” you need to specify the task ID number. You can find it in “Task Manager” will open on the “Details” (“Details” in “ten”) in the corresponding column.

If, however, with Task Manager tab. If you encounter any problems, try to find the PID (which, like the ID, is also suitable and can be used in the above command) through the same Command Prompt:

  1. In the console window, run the query tasklist. A list of all running processes with their PIDs will be displayed. You can find the value you need there.
  2. If you need to open all processes with specific names (for example, the same browser and its tabs), enter the command tasklist /FI “IMAGENAME eq filename.exe” and press the key “Enter”.

This option is suitable if you need to forcefully terminate the process via Task Manager does not work, as well as in cases where you have to work in the Windows recovery environment to fix problems that prevent the OS from working.

Method 3: Windows PowerShell

ChicMe WWChicMe WW

In the tenth and eleventh versions of the Windows operating system, you can use a similar command. “Command line” tool – Windows PowerShell (or “Terminal”). However, the commands in the console window will differ:

  1. Run the tool with administrator rights. Use the system search or right-click on Start and select “Terminal (Administrator)”.
  2. To complete the process, knowing its name, enter the command Stop-Process-Name “Program_name” -Force. It is not necessary to specify the extension here, but you need to know the full name of the software, for example, Adobe Photoshop or Microsoft Office Word.
  3. To forcefully terminate a single process of the selected program, rather than the entire program, you will need to insert the process ID into the query Stop-Process -id “Process ID” -Force.

To find the ID, enter and execute the command Get-Process, which is designed to display all running processes. In the column “Id” is the PID of each task.

In cases where you only need to display the process name and its ID, use the query Get-Process | Format-Table -Property “Process_Name”,Id.

If the program is frozen and unresponsive, don't panic. The Windows operating system has a special tool for this — Task Manager. Just press the key combination Ctrl + Alt + Delete and select the appropriate item. In the list that appears, find the problematic application, select it, and click the “End Task” button. In most cases, this is enough for the system to deal with the frozen software.

When Task Manager is powerless, a more powerful tool comes to the rescue — the command line. Run it as an administrator and use the “taskkill” command. This method works at a deeper level and can terminate even those processes that are hidden from the average user. It's like an emergency switch when the usual buttons no longer work.

Remember that forced shutdown is a last resort. The program will not have time to save your data and shut down correctly. All unsaved changes will be irretrievably lost. Therefore, always try to use the standard method of exiting the program via the “File” menu first.

If the same program regularly freezes and requires forced termination, this is a serious signal. The problem may be with the application itself, a conflict with other software, or even your system. In this case, you should look for updates for the program or check your computer for viruses. Regular crashes are a reason to investigate the cause, not just constantly close the program.

Italojewerly WWItalojewerly WWItalojewerly WWItalojewerly WWItalojewerly WWItalojewerly WW
What function do you consider the most important in a new smartphone?
Share to friends
Alexander Smirnov

Electronics engineer with over 15 years of experience in the IT industry. My passion is disassembling and assembling gadgets. On this site I share my knowledge about technical innovations, talk about how they work, and give advice on their use and repair.

Rate author
Appliances News
Add a comment