Windows 10: Change HungAppTimeout Value in Windows 10  

    Change HungAppTimeout Value in Windows 10

    Change HungAppTimeout Value in Windows 10

    How to Change HungAppTimeout Value in Windows 10
    Published by Category: Performance & Maintenance
    12 Nov 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 31,341

    Show Printable Version 


    How to Change HungAppTimeout Value in Windows 10

    information   Information
    When apps (tasks) do not end (close) automatically when you are restarting, shutting down, or signing out of Windows 10, the system will wait 5 seconds (HungAppTimeout) by default before the End Task dialog appears asking you to cancel or to close the listed apps and restart anyway, shut down anyway, or sign out anyway.

    If you do not make a choice in the End Task dialog before the 1 minute timeout expires, Windows 10 will automatically cancel the restart, shutdown, or sign-out by default.

    For example, if you have notepad open with unsaved changes when you restart, shut down, or sign out.

    HungAppTimeout also specifies how long (5 seconds by default) the system waits for user processes to end after the user clicks/taps on the End task button in Task Manager. If this threshold is exceeded, the End Task dialog box appears, stating that the process did not respond.

    This tutorial will show you how to specify the HungAppTimeout value for how long the system waits before the End Task dialog appears for your account or all users in Windows 10.

    CONTENTS:
    • Option One: Change HungAppTimeout Value for Current User Only
    • Option Two: Change HungAppTimeout Value for All Users


    EXAMPLE: End Task dialog when restarting, shutting down, and signing out
    Name:  Closing_app_and_restarting.jpg
Views: 2691
Size:  21.3 KB Name:  Closing_app_and_shutting_down.jpg
Views: 2872
Size:  21.6 KB Name:  Closing_app_and_signing_out.jpg
Views: 2671
Size:  21.6 KB






    Change HungAppTimeout Value in Windows 10 OPTION ONE Change HungAppTimeout Value in Windows 10
    Change HungAppTimeout Value for Current User Only

    1. Press Win+R to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

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

    HKEY_CURRENT_USER\Control Panel\Desktop

    Name:  HungAppTimeout_regedit-2.png
Views: 2681
Size:  46.9 KB

    3. In the right pane of the Desktop key, double click/tap on the HungAppTimeout string value to modify it. (see screenshot above)
    Note   Note
    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 to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)
    Note   Note
    The default value is 5000 milliseconds (5 seconds). You could also delete the HungAppTimeout string value, to have it use 5000 milliseconds by default.

    It is recommended to not set a value below 1000 milliseconds (1 second).
    Name:  HungAppTimeout_regedit-3.png
Views: 2680
Size:  15.5 KB

    5. Sign out and sign in to apply.






    Change HungAppTimeout Value in Windows 10 OPTION TWO Change HungAppTimeout Value in Windows 10
    Change HungAppTimeout Value for All Users

    Note   Note
    You must be signed in as an administrator to be able to do this option.

    This will override Option One above.

    1. Press Win+R to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

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

    HKEY_USERS\.DEFAULT\Control Panel\Desktop

    Name:  HungAppTimeout_regedit-1.png
Views: 2700
Size:  40.3 KB

    3. In the right pane of the Desktop key, double click/tap on the HungAppTimeout string value to modify it. (see screenshot above)
    Note   Note
    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 to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)
    Note   Note
    The default value is 5000 milliseconds (5 seconds).

    It is recommended to not set a value below 1000 milliseconds (1 second).
    Name:  HungAppTimeout_regedit-3.png
Views: 2680
Size:  15.5 KB

    5. Sign out and sign in to apply.


    That's it,
    Shawn



  1. Posts : 3,300
    10.5 Home 1803 x64
       01 Dec 2017 #1

    Note, that if this value is set too low, Windows evaluates it as a crashed app and it will end it before it opens.
    It especially applies to slow laptops/tablets, where it can take about 25 secs to open, so "25000" is minimum.
      My ComputerSystem Spec


  2. Posts : 31,341
    64-bit Windows 10 Pro build 18219
    Thread Starter
       01 Dec 2017 #2

    TairikuOkami said: View Post
    Note, that if this value is set too low, Windows evaluates it as a crashed app and it will end it before it opens.
    It especially applies to slow laptops/tablets, where it can take about 25 secs to open, so "25000" is minimum.
    Hey mate, :)

    Are you sure you're referring to the setting in this tutorial?

    The default value is "5000".
      My ComputersSystem Spec


  3. Posts : 3,300
    10.5 Home 1803 x64
       01 Dec 2017 #3

    Brink said: View Post
    Are you sure you're referring to the setting in this tutorial?
    Indeed. I had multiple issues on laptops, like system tray icons not displaying at all.
    The cause was this value. They were grayed out as the result of this value set too low.
    Once I set it to 20000, all system icons worked just fine. Imagine my surprise, but it worked.
    Maybe it is not an issue anymore, but I thought it is worth mentioning, 10 works in mysterious ways.

    System icons greyed out Solved - Windows 10 Forums

    EDIT: Value 5000 is probably fine, the other values count towards it, so 5000 + 20000.

    I think, that WaitToKillAppTimeout and WaitToKillServiceTimeout do not exist by default, so it was probably my fault anyway.
      My ComputerSystem Spec


  4. Posts : 31,341
    64-bit Windows 10 Pro build 18219
    Thread Starter
       01 Dec 2017 #4

    Yeah, WaitToKillAppTimeout and WaitToKillServiceTimeout do not exist by default.

    They may have contributed to that. It'll be interesting to hear if others have the same issue.
      My ComputersSystem Spec


 

Tutorial Categories

Change HungAppTimeout Value in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
Hi all, actually i wanted to disable the log in password function every time when i on my PC but i accidentally changed the administrator to user... after restarting my com i cant change back as i'm not the admin any more... See pic below......
That is my problem as stated above. Henry
I have windows 10 x64 home installation. I noticed, that despite I have enabled option "auto-change color scheme" (I have non-english installation so the name may differ), but it's only happening when I'm setting wallpapers manually. If it's...
Basically what the title says. I need to be able to: 1. Change the audio playback device to a specific device. 2. Change the active window. Both need to be able to be done in cmd. How would I be able to do that?
Hello, I recently found out that Steam, (an app that I absolutely adore) has an OS, it looks amazing, but since it's still in beta and I'm not the biggest tech-head, I'm wondering if do want to try SteamOS, will I be able to come back to Windows 10?...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:48.
Find Us