How to Change HungAppTimeout Value in Windows

How to Change HungAppTImeout Value in Windows blog banner image

HungAppTimeout specifies how long your computer waits for a frozen application to respond. This timer applies when you end processes through the Task Manager or the shutdown/restart/sign-out screen, and like any setting, it can be adjusted to your liking. Changing HungAppTimeout gives you more control over apps that “hang” often, saving precious time and energy.

This article explains how to change HungAppTimeout value, its purpose, and best safety practices.

How to change HungAppTimeout value in Windows

Here are the steps to adjust Windows application timeout using the Registry Editor:

A. For the current user

To change HungAppTimeout for one user, do the following:

  1. Press Windows key + R to open the Run dialog box.
  2. Type “regedit” and press Enter to access the Registry Editor.

Dialog box line to access Registry Editor

  1. Enter the following directory in the address bar:
    Computer\HKEY_CURRENT_USER\Control Panel\Desktop

Registry Editor address bar directory

 

  1. In the right-most pane, look for HungAppDirectory and double-click it.
    1. If it doesn’t show, right-click on a space within the Desktop pane, click New, select String Value, type HungAppDirectory and press Enter.
  2. Under Value Data, enter the amount of time you prefer in milliseconds and press OK.

String name and data values

  1. Sign out and sign back in to apply changes.

Prevent performance issues by learning how to correctly use Registry Editor.

→ Read this guide, How to Use the Registry Editor on Windows 11

B. For all users

Here are the steps on how to change HungAppTimeout value for all users.

⚠️ IMPORTANT: This overrides single-user settings.

  1. Sign-in as Administrator. You can use the Microsoft tutorial for how to “Manage User Accounts in Windows” here for detailed instructions. 
  2. Press Windows key + R to open the Run dialog box.
  3. Type “regedit” and press Enter to access the Registry Editor.

Accessing Registry Editor

  1. Enter the following directory in the address bar:
    Computer\HKEY_USERS\.DEFAULT\Control Panel\Desktop
  2. In the right-most pane, look for HungAppDirectory and double-click it.
    1. If it doesn’t show, right-click on a space within the Desktop pane, click New, select String Value, type HungAppDirectory, and press Enter.
  3. Under Value Data, enter the amount of time you prefer in milliseconds and press OK.

Edit string value name and value data

  1. Sign out and sign back in to apply changes.

What is HungAppTimeout?

HungAppTimeout is a setting that represents how long your computer waits for an unresponsive application before allowing you to force-close it. By default, HungAppTimeout is set to 5000 milliseconds (ms) —or 5 seconds—of wait time, but you can adjust it via the Registry Editor to determine how soon the “End Task” box appears.

Best practices & troubleshooting

It’s completely normal if you don’t see the HungAppTimeout setting in your registry. The default value applies even if the entry isn’t there, and you can always add it to your Windows registry’s desktop pane if needed.

However, it’s worth noting that HungAppTimeout has been associated with app stability issues and crashes. One of its functions, which whites out to an unresponsive screen, can sometimes glitch and make your system unstable or prone to crashes.

Deleting HungAppTimeout resolves this, but more changes can lead to a messy Registry Editor, which stores critical system data and specific application settings. So before making any changes, we recommend first creating a backup of your registry.

💻 Protect business-critical data and ensure system stability.

Read this guide, “How to Back Up and Restore the Windows Registry

Additionally, only modify keys you understand, and conduct proper research on the values you wish to delete. Data types are extremely sensitive to syntax errors, so an extra space or a wrong letter can have a major impact.

Vital applications with incorrect values can keep them from functioning properly (or at all!), especially when they work with other programs. So it bears repeating: save a backup of the default settings before doing anything!

Frequently Asked Questions (FAQs)

  1. What is the default HungAppTimeout value in Windows?

Five seconds is the default waiting time for hung Windows applications. This used to be set by the HungAppTimeout value in the Registry Editor, but the setting has since been removed due to performance issues.

  1. Will lowering HungAppTimeout improve performance?

Adjusting HungAppTimeout doesn’t speed up your system, but lowering its value can improve perceived performance by letting you shut down unresponsive apps faster.

  1. Can changing this setting cause system instability?

Simply changing the duration doesn’t cause problems, but invalid data types in HungAppTimeout can cause apps to malfunction. This can happen in the form of “window ghosting,” where a program window abruptly gets whited out and unresponsive.

  1. How to reset HungAppTimeout to default?

Manually reset the HungAppTimeout’s threshold via the Registry Editor. To do this, press Windows + R to open the Run dialog box. Type “regedit”, press Enter, and open the Desktop folder. From there, scroll down to find HungAppTimeout on the list, double-click it, and set the timer to 5000 milliseconds.

Alternatively, you can also restore your entire registry’s default settings if you previously saved a backup, which is highly recommended!

  1. What’s the recommended value for HungAppTimeout in Windows 10?

It’s recommended that HungAppTimeout has more than 1000 ms to give frozen programs at least one second to respond. That said, feel free to adjust HungAppTimeout to fit your needs.

Keep in mind that setting a lower value lets you end problematic apps that cause delays, while a higher value grants more processing time for hardware-extensive tasks like image and video rendering.

  1. Where do you find HungAppTimeout?

To modify the HungAppTimeout threshold, open the Registry Editor – a database of critical system info that lets you turn the dials on deep-root features.

  1. What is HungAppTimeout used for?

HungAppTimeout is a setting that determines how long a system waits for a frozen application to respond before letting you forcefully close the program. This countdown also applies during special cases.

Tasks that don’t automatically close when you shut down/restart/sign out trigger the HungAppTimeout countdown. Once it ends, a screen will appear, giving you the option to either cancel or shut down/restart/sign out.

The importance of knowing how to change HungAppTimeout Value

HungAppTimeout determines how long your system waits before allowing you to force-close a frozen or unresponsive application, with the default set to five seconds. Modifying this value in the Registry Editor HungAppTimeout box gives you control over when to take action on a hung application. While this has its benefits, adjusting HungAppTimeout values is extremely risky if not done properly, so play it safe and keep a backup that can restore your registry back to default.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

Learn more about Ninja Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).