How to Turn On or Off AutoEndTasks in Windows 11
AutoEndTasks is a Windows 11 setting that automatically closes stuck apps when you shut down, restart, or sign out. Instead of stopping your shutdown to ask if you want to close an open app, Windows forces the app to close on its own so your computer turns off faster.
Turning on this feature saves you from getting stuck on the “This app is preventing shutdown” screen. Turning it off keeps the safety check in place so you never lose unsaved work by accident.
AutoEndTasks in Windows 11 automatically closes applications during shutdown or restart. You can enable or disable this by editing the Windows Registry. Navigate to 🗝️HKEY_USERS.DEFAULTControl PanelDesktop, create or modify the AutoEndTasks string value, setting it to 1 to enable or 0 to disable.
What Happens When AutoEndTasks Is On or Off?
- AutoEndTasks ON (set to 1): Windows will close open apps automatically when shutting down or restarting, without asking.
- AutoEndTasks OFF (set to 0): Windows will wait for you to close apps or choose to force close them before shutting down.
How to Turn AutoEndTasks On or Off (Step-by-Step)
- Press Windows key + R to open the Run box. Type
regeditand press Enter to open the Registry Editor.
- In Registry Editor, navigate to this folder path:Registry
HKEY_USERS\.DEFAULT\Control Panel\Desktop
- If you do not see the folder named Desktop under Control Panel, you need to create it:
- Right-click on Control Panel, select New Key, and name it Desktop.
- Now, select the Desktop folder. On the right side, right-click on an empty space and select New String Value.
- Name the new string value AutoEndTasks.
- Double-click on AutoEndTasks and set the Value data:
- Type
1to turn ON AutoEndTasks (Windows will close apps automatically). - Type
0to turn OFF AutoEndTasks (Windows will ask before closing apps). - Or you can delete this string value to keep Windows default behavior.
- Type
Click OK to save.
- Close Registry Editor and restart your computer to apply changes.

Apply AutoEndTasks Setting for Only Your User Account
If you want to change AutoEndTasks only for your user account (not all users), follow the same steps but go to this folder path instead:
HKEY_CURRENT_USER\Control Panel\Desktop
Then create or edit the AutoEndTasks string value the same way.
What the AutoEndTasks Prompt Looks Like
If AutoEndTasks is off, when you try to shut down with open apps, Windows will show a message like this:

Summary
- AutoEndTasks controls whether Windows closes apps automatically during shutdown or restart.
- You can change this setting by editing the Windows Registry.
- Turning it on makes your computer shut down faster but may close apps without saving.
- Turning it off means Windows will ask you before closing apps, helping you avoid losing data.
- Make sure to back up your registry before making changes.
Feel free to leave a comment below if you have questions or want to share your experience!
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!