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.

Microsoft Sculpt Touch Wireless Mouse Review
I recently read about the Microsoft Sculpt Touch wireless mouse and decided to buy it. After using it for a while, I decided to share my experience wi...
AppyMouse On-screen Trackpad and Mouse Pointer for Windows Tablets
Tablet users often miss the mouse pointer, especially when they are habitual to using the laptops. The touchscreen Smartphones and tablets come with m...
Middle mouse button not working in Windows 10
The middle mouse button helps you scroll through long webpages and screens with a lot of data. If that stops, well you will end up using the keyboard ...