How to Turn On or Off AutoEndTasks in Windows 11
When you try to shut down, restart, or sign out of your Windows 11 computer while an app is still open, Windows will usually ask you if you want to close the app first. This is done to help you save your work and avoid losing any data.
This asking process is called AutoEndTasks. If Windows doesn’t hear back from you in time, it will stop trying to shut down and take you back to your desktop.
In this guide, you’ll learn how to turn this feature on or off. Turning it on means Windows will automatically close apps when you shut down or restart without asking you. Turning it off means Windows will always ask you first.
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!