Windows 10: Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10  

    Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10

    Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10

    How to Turn On or Off AutoEndTasks at Restart, Shut down, or Sign out of Windows 10
    Published by Category: Performance & Maintenance
    02 Mar 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,244

    Show Printable Version 


    How to Turn On or Off AutoEndTasks at Restart, Shut down, or Sign out of Windows 10


    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.

    If you turn on AutoEndTasks, Windows will instead of the above automatically close any apps and continue to restart, shut down, or sign out of Windows 10 without the End Task dialog.

    This tutorial will show you how to turn on or off the AutoEndTasks feature for automatically closing apps preventing restart, shutdown, and sign-out for your account or all users in Windows 10.


     CONTENTS:

    • Option One: Turn On or Off AutoEndTasks for Current User Only
    • Option Two: Turn On or Off AutoEndTasks for All Users


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






    Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10 OPTION ONE Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10
    Turn On or Off AutoEndTasks for Current User Only


    The downloadable .reg files below will add and modify the string value in the registry key below.

    HKEY_CURRENT_USER\Control Panel\Desktop

    AutoEndTasks String value

    0 = Off
    1 = On

    1. Do step 2 (on) or step 3 (off) below for what you would like to do.


     2. To Turn On AutoEndTasks for Current User Only

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Turn_On_AutoEndTasks_for_current_user_only.reg

    download


     3. To Turn Off AutoEndTasks for Current User Only

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Turn_Off_AutoEndTasks_for_current_user_only.reg

    download

    4. Save the .reg file to your desktop.

    5. Double click/tap on the downloaded .reg file to merge it.

    6. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    7. Sign out and sign in to apply.

    8. You can now delete the downloaded .reg file if you like.






    Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10 OPTION TWO Turn On AutoEndTasks at Restart, Shut down, or Sign out of Windows 10
    Turn On or Off AutoEndTasks for All Users


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

    The downloadable .reg files below will add and modify the string value in the registry key below.

    HKEY_USERS\.DEFAULT\Control Panel\Desktop

    AutoEndTasks String value

    (delete) = default
    0 = Off
    1 = On

    1. Do step 2 (on), step 3 (off), or step 4 (default) below for what you would like to do.


     2. To Turn On AutoEndTasks for All Users

    This will override Option One above.

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Turn_On_AutoEndTasks_for_all_users.reg

    download


     3. To Turn Off AutoEndTasks for All Users

    This will override Option One above.

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Turn_Off_AutoEndTasks_for_all_users.reg

    download


     4. To Undo AutoEndTasks for All Users

    This is the default setting, and will allows users to use Option One above.

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Undo_AutoEndTasks_for_all_users.reg

    download

    5. Save the .reg file to your desktop.

    6. Double click/tap on the downloaded .reg file to merge it.

    7. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    8. Sign out and sign in to apply.

    9. You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn


  1.    14 Nov 2017 #1

    As I remember there is a location in the registry to decrease the time Windows waits for a not responding App/Task to close before Windows forces it to stop.

    Could someone remind me where it is? Or is there a Tutorial for that?
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 32,244
    64-bit Windows 10 Pro build 18242
    Thread Starter
       14 Nov 2017 #2

    Hello Jerry, :)

    This seems to have changed in Windows 10.

    If you leave the "End Task" dialog idle for a minute, Windows will automatically cancel the restart, shut down, or sign out instead of forcing the apps closed and continuing with the restart, shut down, or sign out.

    As a workaround for what you want for now, you could do this below to make it close any apps preventing the restart, shut down, or sign out quickly, and continue.

    1) Turn on AutoEndTasks.

    2) Change HungAppTimeout to "1000".

    Change HungAppTimeout Value in Windows 10 Performance Maintenance Tutorials
      My ComputersSystem Spec

  3.    14 Nov 2017 #3

    Great thanks.
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 32,244
    64-bit Windows 10 Pro build 18242
    Thread Starter
       14 Nov 2017 #4

    You're most welcome. :)
      My ComputersSystem Spec

  5. TairikuOkami's Avatar
    Posts : 3,326
    10.5 Home 1803 x64
       01 Dec 2017 #5

    Those 2 values might be useful as well:
    Code:
    reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "5000" /f
    reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f
      My ComputerSystem Spec


 

Tutorial Categories

Turn On AutoEndTasks at Restart, Shut down, or Sign out of 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
Turn On or Off Use sign-in info to auto finish setting up device and restart apps after update or restart in Windows 10 When you update to a new Windows 10 build, you must sign in before it finishes the install by default. Starting with...
How to Turn On or Off Require Sign-in on Wakeup in Windows 10 To help secure your PC, Windows requires users to sign in when it wakes from sleep or hibernate by default. This tutorial will show you how to turn on or off to require sign-in on...
Hi, i am using a windows 10 laptop, i had recently been messing around with different sata drivers for my series 7 hard drive controller, i dont know if its linked but my laptop recently has been crashing anytime i restart or shut down the laptop,...
I have two user, one with admin rights and other local standards. I have set up my PC to automatically sign in local user. My question is if admin sign in without sign off of local and thus shut down the PC, a message appears that another user is...
Having MAJOR issues with my custom build desktop. Was running fine for a few days. No malware, AV, or sketchy software, only using Windows Defender. Issues started, were fixed, and are back full flight again. This is my gaming rig. Here is my...
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 19:50.
Find Us