Published by


Brink's Avatar
Administrator

Posts: 25,227

Show Printable Version 


How to Change HungAppTimeout Value in Windows 10

information   Information
When apps (tasks) do not end (close) automatically when you are restarting, shutting down, or signing out of Windows 10, the system will wait 5 seconds (HungAppTimeout) by default before the End Task dialog appears asking you to cancel or to close the listed apps and restart anyway, shut down anyway, or sign out anyway.

If you do not make a choice in the End Task dialog before the 1 minute timeout expires, Windows 10 will automatically cancel the restart, shutdown, or sign-out by default.

For example, if you have notepad open with unsaved changes when you restart, shut down, or sign out.

HungAppTimeout also specifies how long (5 seconds by default) the system waits for user processes to end after the user clicks/taps on the End task button in Task Manager. If this threshold is exceeded, the End Task dialog box appears, stating that the process did not respond.

This tutorial will show you how to specify the HungAppTimeout value for how long the system waits before the End Task dialog appears for your account or all users in Windows 10.

CONTENTS:
  • Option One: Change HungAppTimeout Value for Current User Only
  • Option Two: Change HungAppTimeout Value for All Users


EXAMPLE: End Task dialog when restarting, shutting down, and signing out
Name:  Closing_app_and_restarting.jpg
Views: 143
Size:  21.3 KB Name:  Closing_app_and_shutting_down.jpg
Views: 142
Size:  21.6 KB Name:  Closing_app_and_signing_out.jpg
Views: 145
Size:  21.6 KB






Change HungAppTimeout Value in Windows 10 OPTION ONE Change HungAppTimeout Value in Windows 10
Change HungAppTimeout Value for Current User Only

1. Press Win+R to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

2. Navigate to the key below in the left pane of Registry Editor. (see screenshot below)

HKEY_CURRENT_USER\Control Panel\Desktop

Name:  HungAppTimeout_regedit-2.png
Views: 138
Size:  46.9 KB

3. In the right pane of the Desktop key, double click/tap on the HungAppTimeout string value to modify it. (see screenshot above)
Note   Note
If you do not have a HungAppTimeout string value, then right click or press and hold on an empty space in the right pane of the Desktop key, click/tap on New, click/tap on String Value, type HungAppTimeout for the name, and press Enter.

4. Type in a number for many milliseconds you want to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)
Note   Note
The default value is 5000 milliseconds (5 seconds). You could also delete the HungAppTimeout string value, to have it use 5000 milliseconds by default.

It is recommended to not set a value below 1000 milliseconds (1 second).
Name:  HungAppTimeout_regedit-3.png
Views: 137
Size:  15.5 KB

5. Sign out and sign in to apply.






Change HungAppTimeout Value in Windows 10 OPTION TWO Change HungAppTimeout Value in Windows 10
Change HungAppTimeout Value for All Users

Note   Note
You must be signed in as an administrator to be able to do this option.

This will override Option One above.

1. Press Win+R to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

2. Navigate to the key below in the left pane of Registry Editor. (see screenshot below)

HKEY_USERS\.DEFAULT\Control Panel\Desktop

Name:  HungAppTimeout_regedit-1.png
Views: 139
Size:  40.3 KB

3. In the right pane of the Desktop key, double click/tap on the HungAppTimeout string value to modify it. (see screenshot above)
Note   Note
If you do not have a HungAppTimeout string value, then right click or press and hold on an empty space in the right pane of the Desktop key, click/tap on New, click/tap on String Value, type HungAppTimeout for the name, and press Enter.

4. Type in a number for many milliseconds you want to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)
Note   Note
The default value is 5000 milliseconds (5 seconds).

It is recommended to not set a value below 1000 milliseconds (1 second).
Name:  HungAppTimeout_regedit-3.png
Views: 137
Size:  15.5 KB

5. Sign out and sign in to apply.


That's it,
Shawn