How to Adjust the Time Limit for Unresponsive Applications in Windows 11

|

|

The article explains how to modify the HungAppTimeout period in Windows 11, controlling how long the system waits before ending an app’s tasks when shutting down, restarting, or signing out. The default setting waits 5 seconds before ending tasks. Changes to this setting can be made through the Windows Registry for all users or specific…

This article describes how to change the HungAppTimeout period in 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 5 seconds (HungAppTimeout) before prompting with the End Task dialog asking you to cancel and close the app or shutdown anyway.

If you do not respond to the prompt after a minute, Windows will automatically return to your desktop without shutting down or restarting your computer.

The HungAppTimeout also specifies how long the system should wait for apps and processes to end after the user clicks the End task button. The default value is 5 seconds.

Here’s how to change that HungAppTimeout value to control whether your computer waits long enough after the user clicks the End task button before ending the task.

Change HungAppTimeout for all users

As described above, you can control how long your system waits after the user clicks the End task button on the dialog window before ending the task.

Here’s how to change the HungAppTimeout.

First, 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 HungAppTimeout.

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

  • Delete item (default).
  • The default value is 5000 milliseconds (5 seconds).
  • Do not use a value less than 100 milliseconds (1 second).
Windows hung app timeout registry
Windows hung the app timeout registry.

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 HungAppTiemout 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.

Like this:



One response to “How to Adjust the Time Limit for Unresponsive Applications in Windows 11”

  1. How to Turn On or Off the Automatic Termination of Tasks during Windows 11 Shutdown - Geek Rewind

    […] Windows will wait for 5 seconds (HungAppTimeout) before prompting with the End Task dialog asking you to cancel and close the app and […]

Leave a Reply

Your email address will not be published. Required fields are marked *

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