AutoEndTasks, WaitToKillAppTimeout and HungAppTimeout: making Windows shut down faster

WindowsProUndo: YesUpdated View as Markdown

Short answer

Updated

At shutdown Windows asks each program to close and waits. HungAppTimeout is how long before a program counts as not responding, WaitToKillAppTimeout how long it gets to close, and AutoEndTasks whether Windows closes it without asking. This tweak shortens both waits and turns AutoEndTasks on. In the registry it sets AutoEndTasks to 1 under HKCU\Control Panel\Desktop, and 2 more values.

In the app
Faster ShutdownPRO
Registry

HKCUControl Panel\Desktop

AutoEndTasksYour previous value1

What the switch writes. Your current value may differ. 2 more changes below.

What it does

At shutdown Windows asks each program to close and waits. HungAppTimeout is how long before a program counts as not responding, WaitToKillAppTimeout how long it gets to close, and AutoEndTasks whether Windows closes it without asking. This tweak shortens both waits and turns AutoEndTasks on.

In the app the switch is called "Faster Shutdown", described there as: Closes apps that hang at shutdown after 3 to 5 seconds instead of waiting for you (sign out to apply).

When it helps, and when it hurts

When it helps

  • Shutdowns and restarts that hang on 'This app is preventing shutdown'.

When it hurts

  • A program that needed more time to save can lose unsaved work. Save before you shut down.
  • Sign out once to apply.

What it writes

Exactly what the switch changes, read from the app's source. Switching it off is what the app writes when you turn the tweak off again.

Registry values the switch writes.
Key and valueWith the tweakSwitching it off
HKCUControl Panel\DesktopAutoEndTasks1Your previous valueSaved before the change, or deleted if there was none.
HKCUControl Panel\DesktopWaitToKillAppTimeout5000Your previous valueSaved before the change, or deleted if there was none.Windows default: 20000.
HKCUControl Panel\DesktopHungAppTimeout3000Your previous valueSaved before the change, or deleted if there was none.Windows default: 5000.

From the app's source (pack_extra.hpp), app 2.0.0, checked .

The same change by hand

You do not need the app for this one. These commands make the changes from the table above. Run them in a Command Prompt opened as administrator, and make a restore point first.

Make the change · CMD
reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f
reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "5000" /f
reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "3000" /f
Put it back · CMD
reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "20000" /f
reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f
See what it is set to now · CMD
reg query "HKCU\Control Panel\Desktop" /v "AutoEndTasks"

How to undo it

In the app: Yes

Switching it off puts back exactly what was there before, value for value.

Switch the tweak off in Frozen Tweaks. The app saved what each value was before the change and writes exactly that back, or removes the value if it did not exist.

Changing several settings at once? The app's Make a restore point button, on every plan, makes a Windows restore point before you start.

Verdict

Convenient, as long as you do not count on the shutdown prompt to remind you to save.

Questions

What does the "Faster Shutdown" tweak change in Windows?
In the registry it sets AutoEndTasks to 1 under HKCU\Control Panel\Desktop, and 2 more values. The full list is in the table on this page, read from the app's source.
What is the default value of WaitToKillAppTimeout?
The Windows default of WaitToKillAppTimeout is 20000. Frozen Tweaks sets it to 5000, and switching the tweak off puts back the value you had before.
Is "Faster Shutdown" safe to switch on?
Convenient, as long as you do not count on the shutdown prompt to remind you to save. The main cost: A program that needed more time to save can lose unsaved work. Save before you shut down.
How do I undo it?
Switch the tweak off in Frozen Tweaks. Switching it off puts back exactly what was there before, value for value.
Does it need a restart?
Yes, the change applies after signing out once.
Is "Faster Shutdown" free in Frozen Tweaks?
It is part of Frozen Pro and Elite. You can also make the change by hand with the values on this page.

In the app

Switch
Faster Shutdown
Category
Windows
Plan
Pro
Undo
Yes

See it in the catalog

More tweak explainers

Written by

Founder of Frozen Tweaks, based in Hamburg, Germany. Publishes settings guides for competitive games on his YouTube channel, Frost LIVE.

In the app

Category
Windows
Plan
Pro
Undo
Yes

See it in the catalog

Frozen Tweaks

Free for Windows 10 and 11

58 tweaks free, each with an undo switch. Never edits game files.

v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details

Or type frozentweaks.com on your PC.

The free Windows app for competitive games.

58 tweaks free, each with an undo switch. Never edits game files.

See all 177 tweaks

v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details

Frozen Tweaks runs on Windows. Send the link to your PC and download it there.

Or type frozentweaks.com on your PC.