How to Enable or Disable AutoEndTasks during Shutdown in Windows 11

computer gffcbd
computer gffcbd

This article describes how to turn or off AutoEndTasks during Shutdown, Restart, or Signing out of Windows 11

If you have an app open with tasks running and try to shut down, restart or sign out of your desktop, Windows will not automatically follow through with your command.

Instead, Windows will wait for 5 seconds (HungAppTimeout) before prompting with the End Task dialog asking you to cancel and close the app and process or shutdown anyway.

If you do not respond to the (AutoEndTasks) prompt in the desired time, Windows will automatically return to your desktop without shutting down or restarting your computer.

Below is how to enable or disable the AutoEndTasks feature in Windows 11.

Enable or disable the AutoEndTasks dialog prompt for all users

As described above, if you have a running app or process and attempt to shut down or restart your computer, Windows will not automatically shut down.

Windows will wait a minute for you to respond to the prompt asking to save and close the app before doing so.

If you don’t want to prompt or are not getting the prompt, here’s how to turn it on or off.

Open the Windows Registry, and navigate to the folder key path below.

HKEY_USERS\.DEFAULT\Control Panel\Desktop

If you don’t see the Desktop folder key, right-click on the Control Panel key, then create the subkey (Desktop) folders.

Windows auto end task via registry editor
Windows auto-end task via registry editor

Right-click the Desktop folder key’s right pane and select New -> String Value. Next, type a new item named AutoEndTasks.

Double-click the new item name (AutoEndTasks) and then update the Value data, making sure you keep your existing value:

  • Delete item (default)
  • To turn this feature on. Type 1.
  • To turn this feature off. Type 0.
Windows auto end task via registry editor value data
Windows auto-end task via registry editor value data

Save your changes and restart your computer.

If you don’t want this change to apply to all users on the system, then use the registry key path:

HKEY_CURRENT_USER\Control Panel\Desktop

Then follow the same steps above.

Below is an example of the AutoEndTasks prompt in Windows 11.

Windows shut down anyway prompt
Windows shut down anyway, prompt.

That should do it!

Conclusion:

This post showed you how to enable or disable AutoEndTasks during shutting down, restarting, or signing out of Windows 11. If you find any error above or have something to add, please use the comment form below.

Posted by
Richard

I love computers; maybe way too much. What I learned I try to share at geekrewind.com.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: