Configure Hung Application Timeout in Regedit
When an application stops responding, Windows waits for a predefined
duration before designating it as hung and prompting the user to wait or
terminate the task. System administrators can customize this behavior
directly through the Windows Registry by adjusting the
HungAppTimeout and WaitToKillAppTimeout
values. This guide explains the exact steps required to locate,
configure, and apply these timeout settings using the Registry Editor
(regedit).
Step 1: Open the Registry Editor
- Press
Win + Rto open the Run dialog box. - Type
regeditand press Enter. - If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
Step 2: Navigate to the Desktop Registry Key
Use the left navigation pane to browse to the following path:
HKEY_CURRENT_USER\Control Panel\Desktop
Note: To apply this configuration to all new user profiles on the
system, navigate to
HKEY_USERS\.DEFAULT\Control Panel\Desktop instead.
Step 3: Modify or Create the HungAppTimeout Value
- With the Desktop folder selected, look for a string value named HungAppTimeout in the right pane.
- If HungAppTimeout does not exist:
- Right-click anywhere in the empty space of the right pane.
- Hover over New and select String Value.
- Name the new value
HungAppTimeout.
- Double-click HungAppTimeout to open its edit window.
Step 4: Set the Timeout Duration
- In the Value data field, enter the desired timeout
duration in milliseconds.
- The Windows default is typically
5000(5 seconds). - To shorten the timeout, enter a lower number such as
2000(2 seconds). - To extend the timeout for slower, resource-heavy applications, enter
a higher number such as
10000(10 seconds).
- The Windows default is typically
- Click OK to save the changes.
Step 5: Adjust WaitToKillAppTimeout (Optional)
To configure how long Windows waits for a hung application to close after selecting “End Task” or during a system shutdown:
- Locate the WaitToKillAppTimeout string value in the
same
Desktopkey. - Double-click it and enter the desired time in milliseconds (the
default is usually
20000or5000depending on the Windows version). - Click OK.
Step 6: Apply Changes
Close the Registry Editor and restart your computer or sign out and back in to your Windows user account for the changes to take effect.