Skip to content
Follow
Windows

How to Change HungAppTimeout Settings in Windows 11

Richard
Written by
Richard
Feb 15, 2026 Updated Aug 13, 2026 2 min read
How to Change HungAppTimeout in Windows 11
How to Change HungAppTimeout in Windows 11

HungAppTimeout in Windows 11 is the built-in timer that decides how long your PC waits for a frozen app to close when you shut down or restart. By default, Windows waits 5000 milliseconds, or 5 seconds, before it pops up a warning asking if you want to force the program to close.

You can change this number in the Registry Editor to make your computer wait longer or give up sooner. Lowering the timer makes your PC shut down faster, while raising it gives slow apps extra time to save your work.

⚡ Quick Answer

Modify the HungAppTimeout registry value. Open Registry Editor, navigate to 🗝️HKEY_USERS.DEFAULTControl PanelDesktop, create a new String Value named HungAppTimeout, and set its data to your desired milliseconds. Restart your PC for the change to take effect.

How to Change HungAppTimeout for Everyone Using Your PC

Here’s a simple way to change this setting by editing the Windows Registry. Note: Be careful when editing the Registry because wrong changes can cause problems. It’s a good idea to back up your Registry first.

  1. Press Windows key + R to open the Run box.
  2. Type regedit and press Enter to open the Registry Editor. Click “Yes” if it asks for permission.
  3. In the Registry Editor, go to this folder path:
    🗝️Registry
    HKEY_USERS\.DEFAULT\Control Panel\Desktop
  4. If you don’t see a folder named Desktop under Control Panel, right-click Control Panel, choose New Key, and name it Desktop.
  5. Now, right-click in the right side panel (inside Desktop) and choose New String Value.
  6. Name this new string HungAppTimeout.
  7. Double-click HungAppTimeout and set the Value data to the number of milliseconds you want Windows to wait. For example:
    • 5000 = 5 seconds (default)
    • 10000 = 10 seconds
    • Don’t use less than 1000 (1 second) to avoid issues.
  8. Click OK and close the Registry Editor.
  9. Restart your computer to apply the changes.
Windows Registry Editor showing Desktop key
Editing the Registry to change HungAppTimeout.

Change HungAppTimeout for Only Your User Account

If you want to change this setting just for your user account (and not all users), use this folder path instead:

🗝️Registry
HKEY_CURRENT_USER\Control Panel\Desktop

Then follow the same steps as above.

Registry Editor showing HungAppTimeout string value
Setting the HungAppTimeout value.

What Does the End Task Prompt Look Like?

When an app is slow to close, Windows shows a message like this:

Windows 11 prompt asking to shut down anyway
Windows asking if you want to "Shut down anyway."

You can choose to wait, close the app, or shut down anyway.

Summary

  • HungAppTimeout controls how long Windows waits before forcing an app to close.
  • You can increase or decrease this time by editing the Windows Registry.
  • Always back up the Registry before making changes.
  • Changing this setting can help if apps take longer to close or if you want faster shutdowns.
  • Follow the steps carefully to avoid any problems.

That’s all! You’ve now learned how to control the waiting time Windows uses before it forces apps to close during shutdown or restart.

How to change HungAppTimeout?

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.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Enable End Task in Windows 11 Taskbar
Windows How to Enable End Task in Windows 11 Taskbar
How to Change Registry Editor Font in Windows 11
Windows How to Change Registry Editor Font in Windows 11
Windows 11 Control Panel Shortcuts Guide
Windows Windows 11 Control Panel Shortcuts Guide
How to Access Control Panel in Windows 11
Windows How to Access Control Panel in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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