How to Close All Open Apps in Windows 11 at Once
Closing all open apps in Windows 11 at once lets you shut down every running program and background task in a single click to free up system memory. Windows 11 does not include a built-in master close button by default, but you can create a custom desktop shortcut using a standard task-killing command to wipe out system clutter instantly.
Running this shortcut forces all active apps and background processes to quit at the same time, giving your PC a fresh start without requiring a full system reboot. No restart is needed afterwards, and it works the same on Windows 11 Home and Pro.
Nothing here asks “are you sure?” before it closes things. Save your work in every open app before you start.
Open Windows Terminal, select Command Prompt from the dropdown menu, paste PowerShell -Command “Get-Process |? {$_.MainWindowTitle -ne ” -and $_.Id -ne $PID -and $_.ProcessName -ne ‘explorer’} | Stop-Process -Force” and press Enter. All open apps close immediately with no confirmation.
How to Force Close All Open Apps Using Command Prompt
You can close all open apps in Windows 11 at once using Command Prompt by running a short command in Windows Terminal. This shuts down every running program and background process instantly. It is a fast way to clear out frozen software or free up memory when your computer starts running slow.
On current Windows 11 (version 22H2 and later), Windows Terminal is the default terminal app, so it should already be installed. If you can’t find it, install Windows Terminal from the Microsoft Store.
- Click the Start button and type Windows Terminal. The app should appear at the top of the search results.
- Press Enter to open it. A Windows Terminal window opens, usually with a PowerShell tab by default.
- Click the down arrow (˅) next to the plus (+) tab at the top. A menu listing your available shells opens.
- Choose Command Prompt from the menu. A new tab opens with a Command Prompt ready for input.
- Copy and paste this command into the Command Prompt window. Ctrl+V works in Terminal, or you can right-click to paste. Check that the whole command landed on one line before you go on.
PowerShell -Command "Get-Process |? {$_.MainWindowTitle -ne '' -and $_.Id -ne $PID -and $_.ProcessName -ne 'explorer'} | Stop-Process -Force" - Press Enter to run the command. Your open apps close right away, with no confirmation prompt, and the terminal prints its results as it goes.
This command closes all apps except File Explorer and Windows Registry Editor.
If an app is still open afterwards, it may be running with higher permissions than your terminal. In that case, close Terminal, reopen it with Run as administrator (right-click it in Start), and run the command again.
Some apps will offer to restore your last session when you reopen them, but unsaved changes are gone.

How to Force Close All Open Apps Using PowerShell
You can close all open apps in Windows 11 using PowerShell inside Windows Terminal if Command Prompt is not your preferred tool. This method forces every active application and background process to shut down immediately. It works well when your system freezes up and you need to clear everything at once.
The only difference is the shell you pick and the command you paste. Save your work first, because nothing asks for confirmation.
- Click the Start button and type Windows Terminal. The app should appear at the top of the search results.
- Press Enter to open it. A Windows Terminal window opens, usually with a PowerShell tab by default.
- Click the down arrow (˅) next to the plus (+) tab at the top. A menu listing your available shells opens.
- Select PowerShell from the menu. A new tab opens with a PowerShell prompt. If your first tab was already PowerShell, you can use that one instead.
- Copy and paste this command into the PowerShell window. Ctrl+V works in Terminal, or you can right-click to paste.
Get-Process |? {$_.MainWindowTitle -ne "" -and $_.Id -ne $PID -and $_.ProcessName -ne "explorer"} | Stop-Process -Force - Press Enter to run the command. Your open apps close right away, with no confirmation prompt.
This also closes all running apps except File Explorer and Windows Registry Editor.
If something stays open, try again from a terminal opened with Run as administrator, since apps running with higher permissions can resist a normal-user command.
As with the Command Prompt method, you can't undo it. Reopen any apps you need from Start, and expect to lose unsaved changes.

Summary
- You can close all open apps in Windows 11 quickly using Command Prompt or PowerShell, both run from Windows Terminal.
- These commands close all apps except important system programs like File Explorer and Windows Registry Editor.
- This method frees up your computer's memory and can help fix problems caused by many apps running at once. No restart is needed.
- Warning: Use these commands carefully. Any unsaved work in your apps will be lost, and there is no undo.
You can close all open apps in Windows 11 quickly using either Command Prompt or PowerShell when your computer slows down. These terminal commands shut down all user programs at once while keeping essential system tasks safe. Just make sure you save your work first, because this method closes everything without asking for confirmation.
If you plan to do this often, keep the command somewhere handy, such as in a desktop shortcut, so you don't have to open Terminal each time. If the PC is still slow after you clear everything out, a normal restart is the next thing to try.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!