Skip to content

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.

RegistryEditor

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.


Facebook Google+ Twitter

11 Comments

  • 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
    technet.microsoft.com/en-us/library/cc978604.aspx

    c

  • 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

    • Michele Schenk : Hello Kapil, I've tried every option I can find online to fix this, bu...

      8 hours ago

    • Kapil Arya : ^^ You can create it manually and set it to 1....

      21 hours ago

    • Mayank Date : I'm using Win 8.1. The longpathsenabled file is missing from my regist...

      21 hours ago

    • Rose McMillan : Hey Kapil, Thank you for your reply. Unfortunately, I'm not confident ...

      1 day ago

    • Kapil Arya : ^^ You're most welcome, Prashant!...

      2 days ago