How to bypass "These apps are preventing shutdown"


  1. Posts : 68
    10 Pro
       #1

    How to bypass "These apps are preventing shutdown"


    Hey guys

    Anyone know how to get rid if the above message when shutting down, ideally via gpo....(or as a last resort reg) ?

    Cheers.
      My Computer

  2.   My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #3

    The problem with making this a permanent change is there may be times when you don't want it to happen, like when you forgot you have a specific program running minimized and killing it would cause loss of data.

    This happens to me primarilly when I'm running a Oracle VB VM and have it minimized and forget about it.
      My Computers


  4. Posts : 100
    WINDOWS 10
       #4

    Ztruker said:
    The problem with making this a permanent change is there may be times when you don't want it to happen, like when you forgot you have a specific program running minimized and killing it would cause loss of data.

    This happens to me primarilly when I'm running a Oracle VB VM and have it minimized and forget about it.
    but if you don't mind loosing data, whats the solution to his question?
      My Computer


  5. Posts : 5,452
    Windows 11 Home
       #5

    ReallyFrustratd said:
    but if you don't mind loosing data, whats the solution to his question?
    Run CMD as admin and copy/paste:
    Code:
    reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f
    reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f
    reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "5000" /f
    reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f
    1000 = 1 second.

    Forced shutdown = crashing apps instead of closing them down. Min safe value would be probably 20-30 secs. I use ramdisk, so autoend would shut it down before saving the content.
      My Computer


  6. Posts : 132
    windows 10
       #6

    I am glad I looked at this thread because I had the same issue. It is extremely rare that I close windows with applications open so losing data is very rarely a problem, but it refusing to shut down is a constant problem.
    I currently just have a link on the desktop that has the following...
    Target ~ C:\Windows\System32\shutdown.exe -s -f -t 00
    I use a big red off button as the icon!!
    This just shuts windows down instantly ignoring any problems. It will however allow any updates to be installed. I have used this for years and it works extremely well.
    The great thing about it is that it doesn't affect windows when IT decides it needs to shut down or reset for some reason. Also having a big red button on the desktop to shut the PC down is actually very handy. I started with the big red button on just one PC but now I have it on all of my PC's!!
      My Computer


  7. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #7

    I have similar, only my PCShutdown shortcut on the desktop call PCShutdown.cmd which does the following:

    shutdown /s /t 15 /c "Shutdown in 15 seconds. Enter shutdown /a from the Run box to cancel."

    /t implies /f

    This puts up a message and gives me 15 seconds to change my mind and enter shutdown /a from a Run box to cancel the shutdown. 10 seconds would be enough but 15 works well for me.
      My Computers


  8. Posts : 68
    10 Pro
    Thread Starter
       #8

    Thank you guys, I already had the waittokill hklm and autoend tasks but will try the other keys as well.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:17.
Find Us




Windows 10 Forums