This article will show you how to end tasks automatically to avoid "This app is preventing shutdown" message while turning off your Windows 10/8.1/8.

When you sign out, restart or shut down your system, the apps you don’t have closed yet prevents the action from happening. This is due to the fact that system waits for each process, to have its own shutdown. Unfortunately, when the process fails to close themselves, then system forces to kill these processes. Generally, the time for which system waits to forcefully kill an specific task is around 5 seconds. Else, you receive following screen with message:

Closing <number of tasks> apps and shutting down

This app is preventing shut down.

To go back and save your work, click Cancel and finish what you need to.

[Shut down anyway] [Cancel]

[FIX] This App Is Preventing Shutdown In Windows 8 Or Later

Here you can click Shut down anyway to support system in forcefully ending each task yet running. Or you can select Cancel button and go back to close each apps (tasks) manually and then sign out, restart or shut down your system. If an user faces this scenario when he is shutting down machine yet running a number of apps, then this situation is obvious.

Recommended : See this if you’re unable to access Task Manager

However, if you’re seeing The app is preventing shutdown message each time when you turn off your system, then it needs to be fixed. Here is how you can:

FIX : “This App Is Preventing Shutdown” In Windows 10/8.1/8

Registry Disclaimer: The further steps will involve registry manipulation. Making mistakes while manipulating registry could affect your system adversely. So be careful while editing registry entries and create a System Restore point first.

1. Press W8K + R and put regedit in Run dialog box to open Registry Editor (if you’re not familiar with Registry Editor, then click here). Click OK.


2. In the left pane of Registry Editor window, navigate here:

HKEY_CURRENT_USER\Control Panel\Desktop

[FIX] This App Is Preventing Shutdown In Windows 8 Or Later

3. In the right pane of above shown window, right click and select New -> DWORD Value. Rename the newly created DWORD (REG_DWORD) as AutoEndTasks and double click on it to get this:

[FIX] This App Is Preventing Shutdown In Windows 8 Or Later

4. Finally, in the Edit DWORD Value box shown above, change the Value data to 1. Click OK. You can now close the Registry Editor and reboot the machine to make changes effective.

Hope this helps!

Also read: Task Host Window Is Preventing Shut Down In Windows 10.


  • Hi, I don’t have ‘AutoEndTasks’, I have the one above and below but not it.

  • Kapil Arya

    ^^ You can manually create the DWORD :)

  • Doesn’t work for me (Windows 10, Version 1511 (OS Build 10586.104)

  • For Windows 10 you need to configure it in Local Group Policy

  • Kapil Arya

    ^^ Either you do registry maniputation or configure a policy, that both does the same job :)

  • microsoft said is REG_SZ not reg_DWORD


  • I just want to have it end task on one particular program. If I happened to have something *valid* I want to know… Any way to have Windows automatically end task when shutting down for a particular application?

  • Thank you for the post!

    However it actually does not resolve any problem! I still receive the message “This app is preventing shutdown” (for both shutdown and restart processes) without any information about the app. I’ve waited many seconds with the mouse above it trying to understand, which app the pc is talking about, without any success :(
    If I remove this new Regedit Entry, the removal does not affect anything else, doesn’t it?

  • This works! I tried everything else – even the solutions presented by Microsoft and didn’t work. Thank you very much!!!!

  • Kapil Arya

    ^^ Glad we could help 😎

  • I have tried doing the above but to no avail, my computer still says “this app is preventing shutdown” with no indication of what app is doing this

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    Recent Comments

    • Themba : Thanks....

      6 hours ago

    • Prabhat Jain : I did so and am able to connect to the hotspot created by my Win compu...

      14 hours ago

    • Kapil Arya : ^^ Try all commands from this article:

      1 day ago

    • Kapil Arya : ^^ What error you received?...

      1 day ago

    • Kapil Arya : ^^ Akshat, refer this fix:

      1 day ago