System Change HungAppTimeout Value in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:

Task_Manager_banner.webp

This tutorial will show you how to change the HungAppTimeout value to what you want for your account in Windows 11 and Windows 10.

The HungAppTimeout value is the default 5 seconds you wait on the Signing out, Restarting, or Shutting down screen when you sign out, restart, or shut down to see if any still open apps (tasks) will end (close) before considered "hung" or "not responding".

When the HungAppTimeout expires with unresponsive app(s) found, the End Task dialog appears asking you to click/tap on Sign out anyway, Restart anyway, Shut down anyway to force close the app(s) and lose anything unsaved, or click/tap on Cancel to cancel the sign out, restart, or shut down and return to the desktop to properly save and close the app(s).

If you do not make a choice in the End Task dialog before the 1 minute timeout expires, Windows will automatically cancel the sign out, restart, or shut down by default, and return you to the desktop.


EXAMPLE: End Task dialog when signing out, restarting, or shutting down

This example uses Notepad open with unsaved changes when trying to sign out, restart, or shut down.


Signing_out.png
Sign_out_anyway_End_Task_dialog.png

Restarting.png
Restart_anyway_End_Task_dialog.png

Shutting_down.png
Shut_down_anyway_End_Task_dialog.png



Here's How:

1 Open Registry Editor (regedit.exe).

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

HKEY_CURRENT_USER\Control Panel\Desktop​

HungAppTimeout_regedit-1.png

3 In the right pane of the Desktop key, double click/tap on the HungAppTimeout string value (REG_SZ) to modify it. (see screenshot above)

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 for the HungAppTimeout string value, and click/tap on OK. (see screenshot below)

The default value is 5000 milliseconds (5 seconds). You can also delete the HungAppTimeout string value, to use 5000 milliseconds by default.

It is recommended to not set a value below 1000 milliseconds (1 second).


HungAppTimeout_regedit-2.png

5 Sign out and sign in or restart the computer to apply.


That's it,
Shawn Brink


 
Last edited:
I've attached the reg files for the default Hung App Time out and the reduced app hung time out for convenience
 

Attachments

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core Ultra 9 386HSamsung 32GB LPDDR5X 8533 RAMGeForce RTX 5070 Ti 12GB GDDR7
    OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus G14 GU405AR
    CPU
    Intel Core Ultra 9 386H
    Motherboard
    ASUS
    Memory
    Samsung 32GB LPDDR5X 8533 RAM
    Graphics Card(s)
    GeForce RTX 5070 Ti 12GB GDDR7
    Sound Card
    4-speaker (dual-force woofer) system with Smart Amplifier Technology, 2 Tweeters
    Monitor(s) Displays
    INNOCN GA27T1M 27' 1440p 320Hz Mini-LED Monitor
    Screen Resolution
    QHD (2560x1440)
    Hard Drives
    Samsung 990 Pro 4TB SSD
    PSU
    Rectangle Conn, 250W AC Adapter
    Cooling
    Thermal Grizzly Conductonaut + IETS GT600 Cooling Pad
    Keyboard
    ROG Strix Scope II 96 RX Wireless
    Mouse
    ROG Chakram X Origin
    Internet Speed
    1 GBPS Down / 921 MBPS Up
    Browser
    Google Chrome
  • At a glance

    Windows 11 EducationAMD Ryzen 9 27016GB LPDDR5X 7500 RAMnVIDIA GeForce RTX 5050 8GB GDDR7
    Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus G14 GA403UH
    CPU
    AMD Ryzen 9 270
    Memory
    16GB LPDDR5X 7500 RAM
    Graphics card(s)
    nVIDIA GeForce RTX 5050 8GB GDDR7
    Sound Card
    Realtek
    Monitor(s) Displays
    14' ROG Nebula Display 3K OLED 120Hz
    Screen Resolution
    2880 x 1800
    Hard Drives
    Samsung 990 PRO 4TB SSD
    PSU
    Rectangle Conn, 200W AC Adapter
    Cooling
    Thermal Grizzly Conductonaut
    Mouse
    ASUS ROG Chakram X Origin Gaming Mouse
    Internet Speed
    1 GBPS Down / 875 MBPS Up
    Browser
    Google Chrome
    Antivirus
    AVG Internet Security
Yes, that all works, but, it may just be easier to use a Quick Shutdown Shortcut on your desktop, or taskbar.
I've been doing that, for years, and I share that Shortcut will all my 100+ customers.

Here's the syntax for the Quick Shutdown shortcut.

%windir%\System32\shutdown.exe /s /t 1

The '1' at the end, sets the timeout to just one second. And you don't have to mess around in the registry.

Cheers mates
TM :cool:
PS: If you also want to create for yourself a "Reboot" shortcut, just change the /s in the above shortcut to a /r to change from shutdown to Reboot.
I keep both the Quick Shutdown and the Reboot icons in my Task Bar, for ease of operation.
 

Latest Support Threads

Back
Top Bottom