Shutdown

How to change how long Windows waits before closing apps at Shutdown or Restart

How to change how long Windows waits before closing apps at Shutdown or Restart

If you want to change the time interval for which Windows waits before closing apps at Shutdown or Restart, you need to edit the value of HungAppTimeout. Although the default value is set to 5 seconds, you can increase or decrease this timeout as per your requirement. All you need to do is to change the value data of HungAppTimeout in Registry Editor.

Let's assume that one or two apps (eg SnagIt, Chrome, Outlook, etc.) are open, and you click on the Restart or Shutdown button. In such a case, Windows may display a message saying that those apps are open and are preventing your system from shutting down. Although it is possible to disable This app is preventing shutdown message in Windows 10, you can change the timeout for closing those apps manually as well. By default, it shows a Shut down anyway button that allows users to shut down your computer without closing those apps.

Change how long Windows waits before closing apps at Shutdown

To change the time Windows 10 waits before closing apps at shutdown or restart, follow these steps-

  1. Press Win+R to open the Run prompt.
  2. Type regedit and hit the Enter button.
  3. Click Yes in the UAC prompt.
  4. Navigate to Desktop folder in HKEY_CURRENT_USER.
  5. Double-click on HungAppTimeout.
  6. Set a value in milliseconds.
  7. Click OK and close Registry Editor.

Since you are going to change values in Registry Editor, it is better to backup Registry files or create a System Restore point.

Press the Win+R buttons together to open the Run prompt. Here, you need to type regedit and hit the Enter button. You should see the UAC prompt. If so, click the Yes button to open Registry Editor on your computer.

After opening Registry Editor, navigate to the following path-

Current user:

HKEY_CURRENT_USER\Control Panel\Desktop

All users:

HKEY_USERS\.DEFAULT\Control Panel\Desktop

Here you will find a DWORD value called HungAppTimeout. If you cannot see this DOWRD value in the Desktop key, you need to create it manually.

For that, right-click on Desktop, select New > DWORD (32-bit) Value and name it as HungAppTimeout. Next, double-click on this DWORD value.

By default, it is set to 5000 (5 seconds). You need to enter a value as per your requirement. If you want to make it 7 seconds, enter 7000. If you're going to make it 3 seconds, enter 3000 and so on.

At last, click the OK button to save the change and close the Registry Editor.

From now onward, Windows 10 will wait for the recently changed time before killing the app.

Related read: Stop Windows 10 from automatically reopening apps or programs after a restart.

Battle For Wesnoth 1.13.6 Development Released
Battle For Wesnoth 1.13.6 released last month, is the sixth development release in the 1.13.x series and it delivers a number of improvements, most no...
Cum se instalează League Of Legends pe Ubuntu 14.04
Dacă ești fan al League of Legends, atunci aceasta este o oportunitate pentru tine de a testa rula League of Legends. Rețineți că LOL este acceptat pe...
Instalați cel mai recent joc de strategie OpenRA pe Ubuntu Linux
OpenRA este un motor de jocuri de strategie în timp real Libre / Free care recreează primele jocuri Westwood, cum ar fi clasicul Command & Conquer: Re...