Table of Contents
Windows 11 has no standard button that closes every app while keeping you signed in. To close several windows of the same app, right-click its taskbar icon and choose Close all windows where available. For windows from different apps, use the keyboard or send a normal close request with PowerShell. Save your work first.
Close grouped windows from the taskbar
Find the app’s taskbar icon, right-click it, and choose Close all windows. A single window may show Close window instead. Respond to any save prompt. Apps that run in the notification area can have a separate Quit option.

Use Alt + F4 for the active window
Focus a window and press Alt + F4. Repeat as needed. Use Alt + Tab to find a particular window. With the desktop in focus, Alt + F4 can display the Windows shutdown dialog. Press Esc if your goal is only to close windows.

Request a normal close from PowerShell
After saving work, open Windows PowerShell and run the following command. It selects processes that have a main window in your session and leaves the active PowerShell process out of the list.
Get-Process | Where-Object {
$_.MainWindowHandle -ne 0 -and $_.SessionId -eq (Get-Process -Id $PID).SessionId -and $_.Id -ne $PID
} | ForEach-Object { [void]$_.CloseMainWindow() }

As Microsoft’s CloseMainWindow reference explains, this sends a close request. Some apps may ask you to save, keep running in the background, or stay open if busy. The older PowerShell screenshot shows an unfiltered version.
If a specific app is frozen
Open Task Manager with Ctrl + Shift + Esc. Select the specific app and use End task only if it does not respond to a normal close. The older batch-file example shows forced termination. It can discard unsaved work, so diagnose and close the individual app instead. See the frozen app troubleshooting guide.

Reader Comments 0
Sign in with email or Google to join the discussion.