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

  1. Press Win + R to open the Run dialog box.
  2. Type regedit and press Enter.
  3. 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

  1. With the Desktop folder selected, look for a string value named HungAppTimeout in the right pane.
  2. 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.
  3. Double-click HungAppTimeout to open its edit window.

Step 4: Set the Timeout Duration

  1. 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).
  2. 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:

  1. Locate the WaitToKillAppTimeout string value in the same Desktop key.
  2. Double-click it and enter the desired time in milliseconds (the default is usually 20000 or 5000 depending on the Windows version).
  3. 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.