Windows 11 won't let you shut down? Change this setting right away!

Windows won't let you shut down
(Image credit: Future)

Before I made a change, this happened to me all the time. I'd go to shut down or restart my Windows 11 PC and then I'd get up to use the bathroom, expecting the PC to be off or completely rebooted by the time I got back. Instead, I'd get an error message like the one below: "This app is preventing you from restarting."

this app is preventing you from restarting

(Image credit: Future)
Latest Videos FromTom's Hardware
Avram Piltch
Managing Editor: Special Projects

Avram Piltch is Managing Editor: Special Projects. When he's not playing with the latest gadgets at work or putting on VR helmets at trade shows, you'll find him rooting his phone, taking apart his PC, or coding plugins. With his technical knowledge and passion for testing, Avram developed many real-world benchmarks, including our laptop battery test.

  • acadia11
    What I’ve never understood is why windows doesn’t simply ask to take snapshot and restart where you left off? Or better yet auto snapshot and save the current state and then it doesn’t matter.
    Reply
  • Alvar "Miles" Udell
    Looks like AI copypasted this onto Windows Forum and a Chinese site

    https://windowsforum.com/threads/fix-windows-11-app-preventing-shutdown-error-quick-registry-tweaks-guide.364455/
    https://www.nihendiao.com/6245.html

    acadia11 said:
    What I’ve never understood is why windows doesn’t simply ask to take snapshot and restart where you left off? Or better yet auto snapshot and save the current state and then it doesn’t matter.

    That's called "Sleep".
    Reply
  • USAFRet
    acadia11 said:
    why windows doesn’t simply ask to take snapshot and restart where you left off?
    That has been a thing for years. Hibernation.
    Reply
  • acadia11
    Alvar Miles Udell said:
    Looks like AI copypasted this onto Windows Forum and a Chinese site

    https://windowsforum.com/threads/fix-windows-11-app-preventing-shutdown-error-quick-registry-tweaks-guide.364455/
    https://www.nihendiao.com/6245.html



    That's called "Sleep".
    I’m talking specifically on restart request. Not sleep mode and wake up.
    Reply
  • acadia11
    USAFRet said:
    That has been a thing for years. Hibernation.
    That’s not restart … that’s hibernation or sleep mode. I’m specifically referring to restart.
    Reply
  • USAFRet
    acadia11 said:
    That’s not restart … that’s hibernation or sleep mode. I’m specifically referring to restart.
    Entirely unsure what you mean.

    If you have Hibernation enabled, a 'restart' will bring the system back to what it was doing before.
    Reply
  • bkuhl
    "Windows 111 notices that one or more apps has not been closed and therefore it won't shut down"

    I don't think I have seen that version available for install yet. Getting a little ahead of ourselves?
    Reply
  • stonecarver
    These are hacks I used to do in Windows XP days and they really make a difference. Funny I have not thought about these in years and they popped into my head a few days ago and weird here they are.

    When I had a slower speed Celeron or a lower speed GHz P-4 come in to be fixed I did these tricks on the machine and just floored the owner of the computer when they picked up there PC. Our perception on the computers power is the speed of how fast things react and complete.

    I really does not give the computer more power but just takes the Microsoft brakes off and runs faster for the average user who just web serfs and does just email.

    And the hang time when you Ctrl Alt Del a stuck program is refreshingly instant.

    But working in your registry is NOT for everyone.
    Reply
  • acadia11
    USAFRet said:
    Entirely unsure what you mean.

    If you have Hibernation enabled, a 'restart' will bring the system back to what it was doing before.
    Hibernate has nothing to do with restart beyond if you hibernate your machine you enter power saving mode that you can wake the computer up at the same state. Restart is just that a restart meaning I want my machine to immediately shutdown and then turn back on … likely because of update, in hung state, or just because I want to do so. The only reason I can think ms doesn’t auto save state upon restart is because people use it to fix a hung state and wouldn’t want to retain that state. The point MS does auto save open program and return to the same state sometimes when I’ve done windows updates don’t understand why this isn’t default behavior.
    Reply
  • snemarch
    Ugh, enabling "AutoEndTasks" is such a horribly bad idea – terminating applications that have a "do you want to exit without saving?" dialog open is almost never a good idea. If you have applications other than that blocking shutdown, it's worth getting that fixed... or creating a script that force-terminates those specific applications at shutdown.

    Oh, this reminds me – Microsoft started to do force-terminate shutdowns with their aggressive forced Windows updates. They even combined that with wake timers to get out of standby mode... it's wonderfully delightful to wake up to a desktop machine that should've been in sleep mode, but has been consuming electricity most of the night, and has force-rebooted and discarded unsaved data. Yay, Microsoft!
    Reply