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
![]()
![]()
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.
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
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.
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.
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
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
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
Related Tutorials
- How to Change HungAppTimeout Value in Windows 10
- How to Restart the Computer in Windows 10
- How to Shut Down the Computer in Windows 10
- How to Sign out of Windows 10