When you attempt to shut down or restart your Windows 11 computer, you will occasionally be met with a frustrating screen informing you that “This app is preventing shutdown.” Windows will then pause the entire shutdown process, waiting for you to manually click a button to force the applications to close or cancel the shutdown entirely.
This safety feature is designed to prevent you from losing unsaved work in programs like Microsoft Word or Photoshop. However, if you are a user who saves religiously or relies on auto-save features, this prompt is just an annoying roadblock that forces you to sit and stare at your computer after you’ve already told it to turn off.
You can use the Windows Registry Editor to force Windows 11 to automatically kill all running tasks and shut down immediately, bypassing that warning screen entirely.
Warning Before You Begin
Modifying the Windows Registry can cause system instability if done incorrectly. Follow these instructions precisely. Furthermore, by enabling this feature, you will instantly lose any unsaved data in any open application the moment you click the Shut Down button.
How to Force Auto-Close on Shutdown
You will need to create a new registry string value to alter the default shutdown behavior.
- Click the Start button, type
regeditin the search bar, and press Enter to open the Registry Editor. (Click “Yes” if a User Account Control prompt appears). - In the Registry Editor, use the left-hand sidebar to navigate to the following path:
HKEY_CURRENT_USER\Control Panel\Desktop - Once you have the Desktop folder selected on the left, right-click on any empty space in the right-hand pane.
- Select New > String Value.
- Name the newly created string exactly:
AutoEndTasks - Double-click your new AutoEndTasks string to open its properties window.
- In the “Value data” field, type the number
1. - Click OK to save the change.
You can now close the Registry Editor. You will need to restart your computer once for the changes to fully take effect.
From this point forward, whenever you command Windows 11 to shut down or restart, it will mercilessly and instantly terminate all running applications without asking for your permission.
How to Revert the Change
If you find that you are losing data or simply want the safety net of the warning prompt back, reverting the change is simple.
- Reopen the Registry Editor and navigate back to
HKEY_CURRENT_USER\Control Panel\Desktop. - Double-click the AutoEndTasks string.
- Change the “Value data” from
1to0, and click OK. (Alternatively, you can just delete the string entirely).