Guide

How to Close All Programs on Windows at Once

Windows gives you several ways to close programs, but no single “close everything” switch. Here’s every practical method, from built-in shortcuts to the command line to a one-click tray button — with the real cost of each.

Method 1: Alt+F4, window by window

Alt+F4 closes the active window. Combine it with Alt+Tab to walk through everything open: switch, close, switch, close. Programs with unsaved work show a save prompt each time.

It works, it’s built in, and for two or three windows it’s fine. For fifteen windows across five programs it’s a minute of keystrokes, and one stray Alt+F4 on an empty desktop opens the shutdown dialog instead.

Method 2: Task Manager

Ctrl+Shift+Esc opens Task Manager. Select a program, press End task, repeat. Two things to know:

  • You close one program at a time — there is no select-all.
  • End task is a hard kill: no save prompt, no clean shutdown. Apps may show crash-recovery dialogs the next time they start.

Method 3: taskkill from the command line

To close a specific program gracefully (it gets a close message, like clicking the X):

taskkill /IM notepad.exe

To force it:

taskkill /IM notepad.exe /F

Closing everythingwith taskkill means listing every process name yourself — and getting the list wrong can take down things you need. Windows has no safe built-in “all user apps, but not the system” filter; that filtering is exactly the hard part.

Method 4: One click from the system tray

Captain Kill Switch puts the sweep in the system tray. One click: every open program gets a normal window close message first (the same signal as clicking the X, so well-behaved apps exit cleanly), and anything still running about two seconds later is closed firmly. The Windows shell, Explorer, and system processes are protected by an allowlist — only programs with visible windows are targets. Free, tiny, auto-updates. Setup on the Windows page.

The honest trade-off:the two-second window isn’t enough to act on save dialogs — unsaved work closes. Save first. What you get in exchange: a clean desktop in seconds and no crash-recovery prompts on relaunch, unlike Task Manager’s End task.

Quick comparison

  • Alt+F4 loop: free, keeps save prompts, slow at scale.
  • Task Manager: free, hard kill, risks crash-recovery state, one at a time.
  • taskkill: scriptable, but you own the safety filtering.
  • One-click tray button: instant and safe for the system; closes unsaved work by design.