Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows 11 and Windows 10 do not include a built-in Close all apps button that shuts applications while leaving your Windows session running. The safest bulk option is to sign out, restart, or shut down. If you need to keep Windows running, you can end selected processes in Resource Monitor or force-stop visible app processes with PowerShell—but save your work first.

The easiest method: sign out, restart, or shut down

This closes your open applications as Windows ends the current session. Use it when you do not need to keep the desktop and running programs open.

  1. Click an empty area of the desktop so that no application window is active.
  2. Press Alt + F4.
  3. In the Shut Down Windows dialog, open the drop-down list.
  4. Choose Shut down, Restart, or Sign out.
  5. Click OK.

Choosing Sign out closes the applications and returns you to the Windows sign-in screen without powering off the PC. Restart closes the apps and boots Windows again. Shut down closes the session and turns off the computer.

You can also use the standard Start-menu route in either version of Windows:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

Start > Power > Shut down

Neither method is a way to close every app while continuing to use the current Windows session. Windows does not provide that one-click function.

Close visible apps while keeping Windows running with PowerShell

If you must remain at the desktop, the commonly used command below finds processes with a visible main window and forcefully terminates them.

  1. Save all documents and close anything that contains important unsaved work.
  2. Type cmd in Windows Search.
  3. Right-click Command Prompt and select Run as administrator.
  4. Paste this command and press Enter:
PowerShell -Command "Get-Process |? {$_.MainWindowTitle -ne "" -and $_.Id -ne $PID -and $_.ProcessName -ne "explorer"} | Stop-Process -Force"

The command does the following:

  • MainWindowTitle -ne "" limits the selection to processes with a non-empty main-window title.
  • $_.Id -ne $PID excludes the PowerShell process running the command.
  • $_.ProcessName -ne "explorer" leaves Windows Explorer running.
  • Stop-Process -Force terminates the matching processes rather than asking them to close normally.

That last point matters. This is not a graceful “close all apps” operation. A force-stopped app may not show a save prompt or run its normal shutdown routine, so unsaved changes can be lost. Some applications may also leave tray components, services, or other child processes behind, or restart automatically.

Rank #2
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

The published procedure also excludes Registry Editor along with File Explorer. Do not remove the process exclusions casually, particularly the one protecting the PowerShell process executing the command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Select several processes in Resource Monitor

Resource Monitor provides a graphical option when you want to close a group of processes but do not want to terminate everything matching a broad command.

  1. Press Windows + R.
  2. Type resmon and press Enter.
  3. Open the Overview tab.
  4. Select the checkboxes beside the processes you want to end.
  5. Right-click one of the selected processes and choose End process.

This is a multi-select process-management method, not a one-click command for every open application. Check the process names carefully; ending a Windows component can make the desktop or another feature unstable.

Rank #3
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

Using taskkill for a specific app

Microsoft’s taskkill command is available in Windows 10 and Windows 11. It is most useful when one application is frozen or when you know the executable name.

For example, to force-close Notepad:

taskkill /f /im notepad.exe

To include child processes started by the selected application, add /t:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
taskkill /f /t /im notepad.exe

The important switches are:

Switch Purpose
/im Selects a process by executable image name, such as notepad.exe.
/f Forcefully ends the process.
/t Ends the selected process and its child processes.

Avoid treating taskkill with wildcards as a general-purpose “close all apps” button. Microsoft documents commands such as taskkill /f /fi "PID ge 1000" /im *, which can terminate every matching process with a process ID of at least 1000, regardless of its image name. That may include background software or processes needed by Windows, not just the app windows you can see.

Rank #4
Redragon K521 Upgrade Rainbow LED Gaming Keyboard, 104 Keys Wired Mechanical Feeling Keyboard with Multimedia Keys, One-Touch Backlit, Anti-Ghosting, Compatible with PC, Mac, PS4/5, Xbox
  • 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
  • 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
  • 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
  • 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
  • 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use

Why Alt + F4 is often misunderstood

Alt + F4 normally closes the active window. It does not close every open application at once while leaving Windows running. When you first click the desktop and press the shortcut, Windows instead displays the Shut Down Windows dialog, offering session-ending actions such as shutting down, restarting, or signing out.

Similarly, the PowerShell command is often described as gracefully closing all apps. It is not graceful: its final operation is Stop-Process -Force.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to do when a process will not end

  • Access denied: open Command Prompt as administrator. This can provide access to more processes, but it does not make every protected Windows process terminable.
  • Another account or system process: a process owned by another user, an elevated service, or a protected Windows component may reject the request.
  • The app appears to return: a tray component, service, child process, or automatic-restart feature may still be active. With taskkill, use /t when ending a known parent process.
  • Work disappeared: forceful termination can discard unsaved data because the application never received the opportunity to save normally.

If the goal is simply to clear the desktop before leaving the PC, use Sign out or Restart. If the goal is to preserve the session and close only selected programs, close them normally or use Resource Monitor. Reserve forceful commands for frozen apps or situations where you understand exactly which processes they will affect.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later

FAQ

Can I close all apps in Windows without signing out or restarting?

There is no built-in Windows button for that. You can select processes in Resource Monitor or force-stop visible processes with the PowerShell command, but neither option guarantees a normal, data-safe application close.

Does Alt + F4 close all open apps?

No. It closes the active window. From the desktop, it opens the Shut Down Windows dialog, where you can choose Shut down, Restart, or Sign out.

Will the PowerShell command save my documents?

No. It uses Stop-Process -Force, so applications may not receive normal close requests or display save prompts. Save all work before using it.

What is the safest way to close every open app?

Sign out, restart, or shut down. These actions close applications as Windows ends the current session. Use Start > Power > Shut down for the standard shutdown route.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can taskkill close every process safely?

No. Broad wildcard commands can terminate system or background processes. Use taskkill with a specific executable name, and use /t only when you also want its child processes ended.

The Bottom Line

For the safe, simple option, use Alt + F4 from the desktop and choose Sign out, Restart, or Shut down. If Windows must remain running, close apps individually or select known processes in Resource Monitor. The PowerShell and taskkill approaches can clear visible or stuck apps, but they force termination and can lose unsaved work.

Quick Recap

Bestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.34
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.