Disable Shutdown Anyway Prompt Windows 10 Auto Close
In this article
To disable the “Shutdown Anyway” prompt in Windows 10, you need to turn off the setting that automatically closes running apps when you shut down or restart. This prompt appears when you have unsaved work in open programs, and you can prevent it by changing a power option or by using a Group Policy setting (on Pro and Enterprise editions).
Why Windows 10 Shows the “Shutdown Anyway” Prompt
When you shut down or restart Windows 10, the system tries to close all open applications gracefully. If an app has unsaved changes or is not responding, Windows displays a warning listing the affected programs. You then have three choices: Shut down anyway, Cancel, or sometimes Close and restart. This is a safety feature designed to prevent data loss, but it can be annoying if you frequently shut down with apps open.
The prompt is controlled by the “Automatically terminate applications at shutdown” setting, which is part of the power options in Windows. By default, this is set to Off, meaning Windows will ask you before closing apps. Turning it On tells Windows to close all apps without asking, effectively disabling the prompt.
How to Disable the Prompt via Power Options (All Editions)
This method works on Windows 10 Home, Pro, Enterprise, and Education. It uses the classic Control Panel and does not require any third-party software.
- Press Windows + R, type
control, and press Enter to open the Control Panel. - Click Hardware and Sound → Power Options.
- On the left sidebar, click Choose what the power buttons do.
- Click Change settings that are currently unavailable (you may need administrator rights).
- Scroll down to Shutdown settings and check the box next to “Turn on fast startup (recommended)” – do not uncheck it. Instead, look for the option “Automatically terminate applications at shutdown” and check it.
- Click Save changes.
If you don’t see the “Automatically terminate applications at shutdown” checkbox, it may be hidden because your power plan is set to a balanced or high-performance preset. In that case, you can use the Group Policy method below (if you have Pro or Enterprise) or modify the registry (for Home).
Disabling the Prompt via Group Policy (Pro/Enterprise)
For Windows 10 Pro, Enterprise, or Education, you can use the Local Group Policy Editor to force this setting.
- Press Windows + R, type
gpedit.msc, and press Enter. - Navigate to Computer Configuration → Administrative Templates → System → Shutdown Options.
- Double-click “Turn off automatic termination of applications at shutdown”.
- Set it to Enabled (this actually disables the prompt, despite the confusing name).
- Click OK and restart your computer for the change to take effect.
Note: The policy name is counterintuitive. “Turn off automatic termination” means Windows will not automatically terminate apps, so it will ask you again. To disable the prompt, you want the opposite – set it to Disabled or Not Configured? Actually, let’s be precise: The policy is “Turn off automatic termination of applications at shutdown”. If you enable it, Windows will not automatically terminate apps, so it will show the prompt. To disable the prompt, you need to set this policy to Disabled (or Not Configured) – but that only works if the power option is also set. The reliable method is the power option checkbox. The Group Policy is often used to force the prompt to appear, not to hide it. So if you want to disable the prompt, use the power option method first. If that doesn’t work, check the Group Policy setting and set it to Disabled.
What If the Power Option Is Missing?
On some systems, the “Automatically terminate applications at shutdown” checkbox is not visible even after clicking “Change settings that are currently unavailable.” This can happen if your power plan is set to a custom plan or if the system is managed by an OEM. In that case, you can force the setting via the registry.
Registry Method (Windows 10 Home/Pro):
- Press Windows + R, type
regedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System. - If the System key doesn’t exist, right-click on Windows → New → Key and name it
System. - Right-click on the System key → New → DWORD (32-bit) Value.
- Name it
AllowAutoTerminateAppsand set its value to1(decimal). - Click OK and restart your computer.
This registry value corresponds to the power option. Setting it to 1 enables automatic termination, which disables the prompt. If you ever want to revert, set it to 0 or delete the value.
Common Problems and Misconceptions
- “I unchecked ‘Turn on fast startup’ and the prompt disappeared.” Fast startup is unrelated to the prompt. Disabling it will make shutdown slower but won’t affect the auto-close behavior.
- “The prompt still appears even after I enabled the power option.” This can happen if a program is hung (not responding). Windows may still show the prompt for unresponsive apps because it cannot close them gracefully. In that case, you might need to force-close the app manually.
- “I have Windows 10 Home and no gpedit.msc.” That’s correct – Group Policy Editor is only available in Pro/Enterprise. Use the power option or registry method.
- “Will this cause data loss?” Yes, if you have unsaved work in a program, Windows will close it without asking, and you may lose unsaved changes. Only enable this if you are okay with that risk.
Alternatives to Disabling the Prompt
If you don’t want to risk losing unsaved data, consider these alternatives:
- Save your work before shutting down. This is the safest approach.
- Use “Hibernate” instead of “Shut down”. Hibernation saves your session to disk and restores it next time, so you don’t lose open apps or unsaved work.
- Use “Restart” with the same prompt. The prompt also appears on restart, so the same settings apply.
- Close apps manually before shutdown. Press Alt+F4 on each window or use Task Manager to end tasks.
Frequently Asked Questions
Will disabling the prompt speed up shutdown?
Yes, slightly. If Windows doesn’t have to wait for your response, it will close apps immediately. However, the actual time saved is usually just a few seconds, and the risk of data loss may not be worth it.
Does this affect the “Restart” prompt?
Yes, the same setting applies to both shutdown and restart. If you disable the prompt, Windows will auto-close apps on restart as well.
Can I disable the prompt only for specific apps?
No, the setting is global. You cannot whitelist or blacklist individual apps. If you want to keep the prompt for certain apps, you’ll need to leave the setting off and manually close those apps.
Is there a command-line way to disable it?
You can use the powercfg command to change the power setting, but it’s not straightforward. The registry method above is the most direct command-line-adjacent approach. For example, you can run reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowAutoTerminateApps /t REG_DWORD /d 1 /f from an elevated Command Prompt.
Why does the prompt sometimes not appear even when I have unsaved work?
Some applications handle shutdown signals differently. For example, Notepad will always prompt, but some third-party apps may save automatically or ignore the shutdown signal. The prompt only appears when Windows detects that an app is blocking shutdown.
Is it safe to disable this prompt on a work computer?
It depends on your organization’s policy. If you have unsaved work, you could lose it. Many IT departments prefer to keep the prompt enabled to prevent data loss. If you’re an admin, you can deploy the registry setting via Group Policy to all machines.