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


  • Staff
Task_Manager_banner.png

This tutorial will show you how to turn on or off AutoEndTasks 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.

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.


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: 72
  • Turn_Off_AutoEndTasks_at_sign-out_restart_shut-down.reg
    566 bytes · Views: 255
  • Turn_On_AutoEndTasks_at_sign-out_restart_shut-down.reg
    570 bytes · Views: 266
Last edited:
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
Hi,
Another jewel :loveit:

Freaking stupid message !
 

My Computer

System One

  • OS
    Win-7-10-11Pro's
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer 17" Nitro 7840sn/ 2x16gb 5600c40/ 4060/ stock 1tb-os/ 4tb sn850x
    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
    2-WD-sn850x 4tb/ 970evo+500gb/ 980 pro 2tb.
    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
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 (11GB GDDR5X)
    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,
    4TB Samsung 990 PRO M.2,
    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
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Hiyya Shawn am a little confused as to which one to use I usually (because I read it once ) to hold down the left shift key while shutting down is the way to do a complete shutdown.
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2 (OS Build 22621.2361)
    Computer type
    Laptop
    Manufacturer/Model
    Asus Vivo notebook X712P
    CPU
    i7 -10510U
    Motherboard
    Asus
    Memory
    Samsung 16GB DDR4 2666 MHz
    Graphics Card(s)
    On board Intel CPU graphics
    Sound Card
    N/a
    Monitor(s) Displays
    Generic
    Hard Drives
    Samsung 970 Pro NMe
    PSU
    N/A
    Case
    N/A
    Cooling
    Asus in built
    Keyboard
    Generic
    Mouse
    Logitec Wireless
    Internet Speed
    50MB max
    Browser
    Brave
    Antivirus
    ESET Smart Security
Hiyya Shawn am a little confused as to which one to use I usually (because I read it once ) to hold down the left shift key while shutting down is the way to do a complete shutdown.

Hello John, :-)

Shift + Shut down in the Start menu > Power menu is to do a full shut down (complete) instead of a hybrid shut down.

That isn't related to AutoEndTasks which is to automatically kill any hung task(s) if there should be any at shut down or restart instead.
 

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 (11GB GDDR5X)
    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,
    4TB Samsung 990 PRO M.2,
    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
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Thanks Shawn I shall just do what I have been doing then because I don't understand about shutting down hibernation stuff anyway.
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2 (OS Build 22621.2361)
    Computer type
    Laptop
    Manufacturer/Model
    Asus Vivo notebook X712P
    CPU
    i7 -10510U
    Motherboard
    Asus
    Memory
    Samsung 16GB DDR4 2666 MHz
    Graphics Card(s)
    On board Intel CPU graphics
    Sound Card
    N/a
    Monitor(s) Displays
    Generic
    Hard Drives
    Samsung 970 Pro NMe
    PSU
    N/A
    Case
    N/A
    Cooling
    Asus in built
    Keyboard
    Generic
    Mouse
    Logitec Wireless
    Internet Speed
    50MB max
    Browser
    Brave
    Antivirus
    ESET Smart Security
Thanks Shawn I shall just do what I have been doing then because I don't understand about shutting down hibernation stuff anyway.
:shawn:
 

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 (11GB GDDR5X)
    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,
    4TB Samsung 990 PRO M.2,
    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
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Is there a way to delay the AutoEndTasks command? It works great! However, I'd like to see about a 10-15 second delay so the user still has the option to click "sing out anyway" or "cancel". If they don't, THEN it will force the signout. I'm guessing it doesn't exist because I've browsed around on this site (and tenforums), and I see mentions to this command, but no one talks about a delay.
 

My Computer

System One

  • OS
    Win10
Is there a way to delay the AutoEndTasks command? It works great! However, I'd like to see about a 10-15 second delay so the user still has the option to click "sing out anyway" or "cancel". If they don't, THEN it will force the signout. I'm guessing it doesn't exist because I've browsed around on this site (and tenforums), and I see mentions to this command, but no one talks about a delay.
Hello, :alien:

Not that I'm aware of. AutoEndTasks is only for disabling the End Task dialog.
 

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 (11GB GDDR5X)
    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,
    4TB Samsung 990 PRO M.2,
    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
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Back
Top Bottom