System Turn On or Off AutoEndTasks at Sign out, Restart, Shut down in Windows 11


  • Staff
Task_Manager_banner.png

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.

If you turn on AutoEndTasks, Windows will automatically force close any apps instead of waiting for your choice on the End Task dialog screen, and automatically Sign out anyway, Restart anyway, or Shut down anyway.

This tutorial will show you how to turn on or off AutoEndTasks for your account in Windows 11 and Windows 10.


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 Do step 2 (on) or step 3 (off) below for what you would like to do.

2 Turn On AutoEndTasks

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

Turn_On_AutoEndTasks_at_sign-out_restart_shut-down.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"

3 Turn Off AutoEndTasks

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_at_sign-out_restart_shut-down.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"=-

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 or restart the computer to apply.

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


That's it,
Shawn Brink


 

Attachments

  • Task_Manager.png
    Task_Manager.png
    7.6 KB · Views: 40
  • Turn_Off_AutoEndTasks_at_sign-out_restart_shut-down.reg
    566 bytes · Views: 118
  • Turn_On_AutoEndTasks_at_sign-out_restart_shut-down.reg
    570 bytes · Views: 140

firas465

Banned
Local time
2:27 PM
Posts
385
Location
Germany
Visit site
OS
Windows 11
thank you :)
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    i-7 10700k 3.8
    Motherboard
    PRIME Z-490 A
    Memory
    32gb DDR4 3200
    Graphics Card(s)
    RX 580
    Monitor(s) Displays
    1
    Screen Resolution
    2560x1440
    PSU
    750
    Keyboard
    Corsair K95 RGB PLATINUM XT Mechanical Gaming Keyboard
    Mouse
    G502 HERO

ThrashZone

Minor Threat
Power User
VIP
Local time
7:27 AM
Posts
1,490
Visit site
OS
Linux-Mint-Cinnamon-20.2 Win-7-10-11Pro's
Hi,
Another jewel :loveit:

Freaking stupid message !
 

My Computer

System One

  • OS
    Linux-Mint-Cinnamon-20.2 Win-7-10-11Pro's
    Computer type
    PC/Desktop
    Manufacturer/Model
    asus x3
    CPU
    10900k & 9940x & 5930k
    Motherboard
    z490-Apex & x299-Apex & x99-Sabertooth
    Memory
    Trident-Z Royal 4000c16 2x16gb & Trident-Z 3600c16 4x8gb & 3200c14 4x8gb
    Graphics Card(s)
    Titan Xp & 1080ti FTW3 & evga 980ti gaming
    Sound Card
    Onboard Realtek x3
    Monitor(s) Displays
    1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
    Screen Resolution
    1920-1080 not sure what the t.v is besides 43" class scales from 1920-1080 perfectly
    Hard Drives
    To many to list
    PSU
    1000p2 & 1200p2 & 850p2
    Case
    D450 x2 & 1 Test bench in cherry Entertainment center
    Cooling
    Custom water loops x3 with 2x mora 360mm rads only 980ti gaming air cooled
    Keyboard
    G710+x3
    Mouse
    Redragon x3
    Internet Speed
    xfinity gigabyte
    Browser
    Firefox
    Antivirus
    mbam pro

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
7:27 AM
Posts
9,462
Visit site
OS
Windows 11 Pro for Workstations
Well, the End Task dialog could be helpful to some to prevent them from mistakenly loosing everything in an open unsaved app when trying to sign out, restart, or shut down.

While for others, it can be nuisance and don't want to see it.

Choices are always great. :-)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    1TB Samsung 980 PRO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Top Bottom