How do I close all opened windows at once?

  • 2
    Define “close”, “opened”, “windows”, and “at once”. – Synetech Oct 27 '13 at 20:49
  • 2
    Alt+F4+F4+F4... – Jet Jun 19 '14 at 14:45
  • There is no a proper answer here yet (( – zhekaus Jan 20 '17 at 8:30
  • An improper answer would be to restart the machine :) – ytpillai Sep 9 '17 at 2:47
  • @zhekaus I added a proper answer: superuser.com/a/1314359/116475 – Franck Dernoncourt Apr 16 '18 at 0:13

11 Answers 11


All answers I could quickly find on this topic involve either the tip Molly gave or using an application (or coding it yourself). For example (I haven't tried this), Close All Windows.

Also, by pressing Ctrl + Shift + Esc you get the Windows Task Manager, where you can see all running applications at once (among other things), select them, and End Task them.

| improve this answer | |
  • Why i asked yesterday i accidentally opened 500 images . and then i manually closed one by one – metal gear solid Dec 10 '09 at 13:20
  • @Jitendra - yeah has happened to me too. But I never thought to ask if there was a simpler way to close all the windows at once :) – anand.trex Dec 10 '09 at 13:46
  • Depending on what you used to open the images, there may be a command in the application to close all. Generally I see the shortcut CTRL+SHIFT+W used. – ale Dec 10 '09 at 13:52
  • NTWind CloseAll is paid software now. $20 FYI – Morgan T. Apr 7 at 18:01

I like to see my open windows ungrouped, but realized that this i.e. closing multiple windows at once was a problem with such a setting. A less time-taking method would be to use the command line like this :

taskkill /im explorer.exe -f

And then restart explorer using :


Caution : This will cause processes like file copying on the default Windows interface to abort.

| improve this answer | |
  • Extremely dangerous. I would not suggest this at all!!! – MistyD Sep 1 '19 at 1:26
  • i don't know how dangerous it is. i know that i have visual studio, vmware (with several machines running) and another 15 or so windows open. i just rant this code. it closed explorer and nothing else. i used my existing cmd console to bring it back. how did this answer get so many votes, if someone can explain that. – Elisha Habinsky Jul 19 at 8:54

Simultaneously close all open windows:

  1. While pressing the Ctrl key, successively click each of the task icons on the taskbar.
  2. Right-click the last task icon, and choose Close Group.

If you only want to minimize the windows, use the 'Show Desktop' shorcut.

| improve this answer | |
  • 2
    Win+D is the keyboard shortcut for Show Desktop to minimise all windows. Win+D a second time brings them all back. – Dave Webb Dec 10 '09 at 13:14
  • 8
    This doesn't work on Windows 7 Professional – Coops Jul 31 '13 at 9:33
  • This is intended for Windows XP. – Neurotransmitter Jul 29 '16 at 8:18

I usually (yes, this happens a lot to me..) just press Alt key and then go crazy on the F4 key until everything is shut down. Not one click, but it's pretty fast. Or, depending on your system, reboot.. Don't forget to save anything.

Or maybe you could simply switch users to continue your work without all these tabs. Then when you're down, shutting down the computer will kill all the processes for the first user...

Not the best solutions, I just thought Id give this one a try.

| improve this answer | |
  • Go crazy on the F4 key until everything is shut down. Not one click, but it's pretty fast You can hold down F4, but you may need to click windows with the mouse since they may not automatically grab focus. – Synetech Oct 27 '13 at 20:50

It's not a one-click solution but it is the fastest I know with my Windows 7 Pro

  1. Open taskbar properties (right click > properties) or (Control Panel > Appearance and Personalization > Taskbar and Start Menu)
  2. Select "Group similar taskbar buttons" = "Group similar taskbar buttons", and click OK
  3. Your windows are group, right-click and select "Close all windows"
  4. Go back to taskbar properties to restore you old settings
| improve this answer | |
  • The question is on Windows-XP. See question tag – Prasanna Apr 5 '15 at 13:12

After doing Ctrl-Shift-Esc, go to applications. Then, press shift down and end task, all of them will end (You might get a confirmation message or something depending on the program).

Sometimes, even when you close a program, the processes of the program (The biggest example is an unclosed connection to a local file) may still be on your computer. Most of the time, these processes are mainly overlooked by the owner software because they use almost no space. However, if you still want to end them, just to be meticulous, go to processes and you'll have to end them one by one.

| improve this answer | |

You can use the command line utility NirCmd (freeware) (archive.org's mirror for the webpage; archive.org's mirror for the binary) and execute:

nircmd.exe win close alltopnodesktop

I use it on Windows 10 Enterprise x64 version 1709, and it works as intended: it will close all windows.

The program is supposed to work on Windows 9x/ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, Windows 8, and Windows 10.

| improve this answer | |
  • works pretty good although it made my desktop icons disappear and can't right click on desktop anymore... haha – Morgan T. Apr 7 at 17:56

Powershell command: Get-Process | Where-Object {$_.MainWindowTitle -ne ""} | stop-process

I got this from another SO answer here https://stackoverflow.com/questions/9725629/how-to-close-all-windows

| improve this answer | |
  • 1
    That seems like a pretty strange approach; doesn't that just close processes that don't have an empty-titled main window? – SamB Aug 27 '16 at 4:55

I just found myself a quick way of doing this after a very long overtime work today.

Win10 user here:

Windows Key + Tab ( Will bring up something like Win Aero )


Press Delete until every window on your display is gone.

Sadly, if you have multi monitor/display, I don't know how to Delete/close the other windows yet.

| improve this answer | |

quickly click ALT+F4 many times :)
p.s. But till that, all windows should be active, for that click ALT+TAB.

| improve this answer | |

For closing all windows of a program by using only the keyboard:

windows button > esc > tab > right arrow till you reach desired program > right-mouse button > arrow up > enter

Note: This only works when 'always combine' is selected in the taskbar options and your keyboard has a right-click mouse button, usually somewhere next to the spacebar

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.