An interesting registry key: AllowBlockingAppsAtShutdown.Shut down the computer quickly

devilink

Member
It is located at:
Code:
gpedit.msc---Computer Configuration---Administrative Templates---Shutdown Options---Turn off automatic termination of applications that block or cancel shutdown

Test Results Two registries are required to be used together.

Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"AllowBlockingAppsAtShutdown"=dword:00000000

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

Explanation:

Code:
This policy setting specifies whether Windows will allow console applications and GUI applications without visible top-level windows to block or cancel shutdown. By default, such applications are automatically terminated if they attempt to cancel shutdown or block it indefinitely.

If you enable this setting, console applications or GUI applications without visible top-level windows that block or cancel shutdown will not be automatically terminated during shutdown.

If you disable or do not configure this setting, these applications will be automatically terminated during shutdown, helping to ensure that Windows can shut down faster and more smoothly.

The three registry values below correspond to the location of the Group Policy, and all of them will pop up the Prevent Shutdown window. The difference is that the one that is not processed before shutdown will not shut down, and the other two pop-up windows will automatically shut down when shutting down. To completely close the shutdown popup window.

It's very simple to reproduce him. Create a new notepad on the desktop, type two letters in it, don't save it, and then click it again and it will appear.

It also has a companion registry, which is outdated and less applicable.
If this is turned on, it will cause the game interface to appear easily: unresponsive or splash screen.
So, what is his correct value?

Code:
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"WaitToKillAppTimeout"="300"
"HungAppTimeout"="100"

Registry Location:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
Code:
"AllowBlockingAppsAtShutdown"=-

-.png

Code:
"AllowBlockingAppsAtShutdown"=dword:00000000

-.png

Code:
"AllowBlockingAppsAtShutdown"=dword:00000001


1.png
 
Last edited:
I'm not quite sure what you're looking for in an answer. Can you clarify please what you mean by "what are the correct values?" From the screenshots you posted I'm guessing you are wondering what the difference is between the key with a value of =- and a value of 0?
 
I think you're trying to combine two different settings at the same time.

ADMX_Winsrv/AllowBlockingAppsAtShutdown
This policy setting specifies whether Windows will allow console applications and GUI applications without visible top-level windows to block or cancel shutdown.

By default, such applications are automatically terminated if they attempt to cancel shutdown or block it indefinitely.

  • If you enable this setting, console applications or GUI applications without visible top-level windows that block or cancel shutdown won't be automatically terminated during shutdown.
  • If you disable or don't configure this setting, these applications will be automatically terminated during shutdown, helping to ensure that windows can shut down faster and more smoothly.

How to Turn On or Off AutoEndTasks at Restart, Shut down, or Sign out of Windows 10
 
I'm not quite sure what you're looking for in an answer. Can you clarify please what you mean by "what are the correct values?" From the screenshots you posted I'm guessing you are wondering what the difference is between the key with a value of =- and a value of 0?
The difference is: the value is: a window will pop up before you click shutdown, and it will not automatically end the program that prevents shutdown.

If the value is 0, or it does not exist, it will pop up after clicking shutdown, and wait for some time to automatically end the program that prevents shutdown.
 
Thanks for the suggestion, actually I am being bothered by a certain app that sometimes prompts to save state on shutdown and blocks it.
They say by default it closes prompted apps, but it's not true in my case.
I see it in the morning, would like to set the shutdown to be more aggressive, especially if a timeout is possible.
These look like it, will see after reviewing, it would be a great addition for both shutdown choices.
 
You might want to also check "CriticalAppShutdownTimeout", "CriticalAppShutdownCleanupTimeout" and "WaitToKillServiceTimeout" in the same key.

Then there are others, like "ProcessTerminateTimeout", "ServicesPipeTimeout" and "WaitToKillServiceTimeout" in HKEY_LOCAL_MACHINE\SYSTEM and the same ones in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control (verified by ProcMon on Win7, Windows reads both of these places; I know it does the same for at least some of them in later OSes).

It also reads the entries in USER's hives for all other users, most importantly for .DEFAULT user, which apply to the SYSTEM account.
 
Back
Top