04/12/2022
To increase shutdown time in Windows 10
Open the registry, to open type regedit from the start menu.
HKEY_LOCAL_MACHINESYSTEM CurrentControlSet Control
Click the Control key folder and look for the WaitToKillServiceTimeout key. Double-click that key and change the value from the 5000 default to 2000, and then click OK.
This changes the time Windows 10 will wait for an unresponsive service from 5ms to 2ms. It is not recommended that you set this parameter any lower than 2ms.
Next, navigate to this key in the Windows Registry file:
HKEY_CURRENT_USER Control Panel Desktop
We have to create several new keys. Right-click the Desktop folder and select New String Value and give it the name WaitToKillAppTimeOut. Double-click the new key, give it a value of 2000, and then click OK.
Right-click the Desktop folder again and select New String Value and give it the name HungAppTimeout. Double-click the new key, give it a value of 2000, and then click OK.
Right-click the Desktop folder for the last time and select New String Value and give it the name AutoEndTasks. Double-click the new key, give it a value of 1, and then click OK.
The changes and additions to the Windows Registry file will decrease the time the operating system will wait for applications, services, and tasks to close, so, it is possible that a service or application will not be able to close. Generally speaking, if your work is saved that should not cause a problem, but you should monitor outcomes and modify the parameters as necessary.