How to Automatically End Tasks While Shutting Down Windows | How To

From time to time, when you try to shut down, restart, or sign out of , you might have seen notifying that an app(s) is preventing from down or restarting. To shut down the system, you have to click on the “Shut down anyway” button. If you don’t click on the button within a set amount of time, Windows will cancel the shutdown action.

win-auto-end-tasks-app-preventing-shutdown

Generally, when you shut down or restart your system, Windows tries to gracefully close all the applications . However, when an app is doing something in the background or if there is any unsaved work, it may block Windows from shutting down. This is good for the most part because it gives you a chance to save your work and properly close the application.

But if there is any app that is misusing this feature or if you think you don’t want applications blocking the shutdown or restart process, you can force Windows to close all applications regardless of their state during shutdown, restart, or sign-out process. This article shows you do it.

If you want to stop applications from blocking shutting down or restarting your system for the current user, follow the steps below. Do note that any other user on your system will not be affected by the changes you make here. e.g, when needed, the applications can still block other users from shutting down or restarting the system.

Also, since we are going to edit Windows Resgistry, back it up. It helps you restore the registry in case anything bad happens.

1. To open Windows Registry, search for “regedit” in the Start menu and press Enter on your keyboard.

win-auto-end-tasks-regedit

2. In the registry, go to the following location. If you are using Windows 10, copy and paste below the path in the Registry Editor’s address bar and press Enter. You will be taken to the target key instantly.

3. Once you are here, right-click on the right panel and select “New” and then “String Value.”

win-auto-end-tasks-select-string-value

4. Name the String Value as “AutoEndTasks.”

win-auto-end-tasks-name-task-current-user

5. Double-click on the newly created value, type “1” in the value data field and click on the “OK” button to save changes.

win-auto-end-tasks-enter-value-data

Restart your system to make the changes take effect. After restarting, Windows will no longer allow apps to block the shutdown, restart, or sign-out process.

If you ever want to revert back, either delete the AutoEndTasks value or change the value data back to “0.”

If you want to automatically close the apps for all users while restarting or shutting down, you can do that, too. However, since you are going to make changes for all the users, you need to have administrative privileges.

1. Search for “regedit” in the Start menu, right-click on it and select “Run as administrator.” This will open Registry Editor with admin rights.

2. Now, go to the following location:

HKEY_USERS.DEFAULTControl PanelDesktop

win-auto-end-tasks-go-to-all-users-key

3. On the right panel right-click and select “New > String Value.” Name the value as “AutoEndTasks” and press Enter to confirm the name.

win-auto-end-tasks-name-key-all-users

4. After creating the value, double-click on it to open “Edit Value” window. Type “1” in the value data field and click on the “OK” button to save the changes.

win-auto-end-tasks-enter-value-data

Restart your system. From this point forward, apps won’t block the restart or shutdown process for any user on your system. To revert back, change the value data to “0” or delete the AutoEndTasks value.

Comment below sharing your thoughts and experiences about using the above method to automatically close applications while shutting down and restarting your Windows system.

You might also like More from author