2

Windows 10 does not always shutdown because "an app is preventing you from shutting down". Is there a setting to force shutdown regardless of "potential save loss"? I don't care if I lose work. This has become a problem for me because sometimes I stand up and walk away, and I come back 3 hours later and my computer is still on...

enter image description here

1
  • 1
    Please understand that for a decade, Windows had a reputation for hanging on shutdown. This dialog is designed to prevent those hangs from happening, by having the user fix the underlying issue. Commented Feb 25, 2021 at 23:18

2 Answers 2

2

Create a shortcut, for example on your Desktop, to the command

shutdown /t 30 /s

and name it something description such as "Shutdown in 30 seconds".

As you'd expect, double-click the shortcut to run it. Your machine will shutdown after 30 seconds. Head to START and type shutdown /a if you didn't intend to do that!

Another useful shortcut is for a restart,

shutdown /t 30 /r

You can adjust the timeout up or down from 30 seconds as you like. (It must be non-zero; I tend to use 10 seconds as my "do it now" value.)

3
  • 1
    Works for me. on Windows 10, 20H2. Going the GUI route triggers the warning page with the inevitable abandonment of shutdown. Going the CLI route gets what I want. My test rig was a clean start of Word, editing a document (without autosave), and then triggering shutdown Commented Feb 26, 2021 at 0:19
  • 1
    I have good reasons for using this. I would imagine the OP does, too Commented Feb 26, 2021 at 0:34
  • @roaima I've been messing with PowerShells Stop-Computer and there's a -Force parameter Commented Feb 26, 2021 at 1:30
2

You can create a registry value which will instruct Windows to automatically kill tasks on shutdown.

Open regedit and navigate to Computer\HKEY_USERS\.DEFAULT\Control Panel\Desktop.

Right click in the right pane and create a new string key. Name the new key AutoEndTasks.

Double click on the newly created key and give it a value of 1.

Now Windows will close your apps automatically and shutdown.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .