System Change HungAppTimeout Value in Windows 11


  • Staff
Task_Manager_banner.png

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


 

Attachments

  • Task_Manager.png
    Task_Manager.png
    7.6 KB · Views: 66
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

  • Default Hung App Timeout.reg
    222 bytes · Views: 41
  • Reduce Hung App Timeout.reg
    222 bytes · Views: 37

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m16 R1
    CPU
    AMD Ryzen 9 7945HX
    Motherboard
    Alienware
    Memory
    SK Hynix 64 GB 5200 MHz DDR5 RAM
    Graphics Card(s)
    GeForce RTX 4090 16 GB GDDR6
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    16" QHD+ (2560 x 1600) 240Hz, 3ms 300-nits Screen + LG 32GQ850-B 32" UltraGear QHD 240hz Monitor
    Screen Resolution
    QHD (2560x 1440)
    Hard Drives
    2x Samsung 990 PRO 4TB SSDs + WD_BLACK SN770M 2TB SSD
    PSU
    330W AC Power Adapter
    Cooling
    Noctua NT-H2 + Fujipoly Extreme Thermal Pads
    Keyboard
    Alienware CherryMX mechanical keyboard (Laptop) + AW510K Mechanical Gaming Keyboard (external)
    Mouse
    Alienware Tri-Mode Wireless Gaming Mouse AW720M
    Internet Speed
    1 GBPS Down / 350 MBPS Up
    Browser
    Google Chrome
    Antivirus
    Avast Antivirus
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9500
    CPU
    Intel i7-10875H
    Memory
    Kingston FURY Impact 64 GB 3200 MHz DDR4 RAM
    Graphics card(s)
    nVIDIA GeForce GTX 1650 Ti Max-Q w/ 4 GB GDDR6
    Sound Card
    Realtek
    Monitor(s) Displays
    15.6 UHD+ Touch, InfinityEdge, 500-nits, Anti-Reflecitve
    Screen Resolution
    3840 x 2400
    Hard Drives
    Samsung 990 PRO 2TB + 4TB SSDs
    PSU
    Dell 130W Laptop Charger USB C Type C AC Adapter
    Cooling
    Noctua NT-H2 Thermal Paste on CPU + GPU
    Mouse
    Logitech MX Anywhere 3
    Internet Speed
    1 GBPS Down / 350 MBPS Up
    Browser
    Google Chrome
    Antivirus
    Avast Free Antivirus
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.
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Back
Top Bottom