System Change HungAppTimeout Value in Windows 11


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


 
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

System One System Two

  • OS
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Alienware m16 R1
    CPU
    AMD Ryzen 9 7945HX
    Motherboard
    Alienware
    Memory
    G.SKILL Ripjaws F5-5600S4040A32GX2-RS 5200 MHz DDR5 64GB RAM
    Graphics Card(s)
    GeForce RTX 4090 16 GB GDDR6
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    ASUS ROG Swift OLED PG32UCDM UHD 240hz Monitor
    Screen Resolution
    UHD (3840 x 2160)
    Hard Drives
    2x Samsung 990 PRO 4TB SSDs (RAID 0) + WD_BLACK SN770M 2TB SSD
    PSU
    330W AC Power Adapter
    Cooling
    Noctua NT-H2 + Fujipoly Extreme Thermal Pads + llano RGB Laptop Cooling Pad V12
    Keyboard
    Alienware CherryMX mechanical keyboard (Laptop) + SteelSeries Apex 7 TKL - Mechanical Gaming Keyboard (external)
    Mouse
    SteelSeries Rival 5
    Internet Speed
    1 GBPS Down / 330 MBPS Up
    Browser
    Google Chrome
    Antivirus
    Avast Premium Security
  • 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

Latest Support Threads

Back
Top Bottom