Close all open windows at once

How to

Want to close all open windows at once? It is very simple. Here is how to close all open windows at once with one keyboard shortcut.

While not always and not for everyone, there are situations where you may need to close all open windows at once . There are many advantages to closing open windows in groups. For example, if you want to shut down your system quickly, you can use a hotkey to close all windows at once instead of closing them one at a time. This is especially useful if you have many windows to close. On the other hand, for privacy reasons, you can also close all windows at the same time.

Nevertheless, another major advantage of closing all open windows together is that it saves time and thus increases productivity.

Now, let’s get started by showing you how to close all windows at the same time.

The following procedure works the same in Windows 10 and 11.

Close all windows with keyboard shortcut

To close all windows with a keyboard shortcut, create an AutoHotKey script. The script is very simple and works like a charm.

In case you are wondering, there is no built-in option in Windows to do this job perfectly. For this reason, you must use AutoHotKey. This is free, open source Windows automation software.

Here is how to create and use an AutoHotKey script that closes all windows with a shortcut.

  1. Obtain and install the AutoHotKey software.
  2. Right-click on the desktop.
  3. Select “New > Text Document”.
  4. Open the text file.
  5. Insert the AutoHotKey script.
  6. Close the text file.
  7. Rename the file “CloseAllWindows.ahk”.
  8. Double-click the .ahk file.
  9. The AutoHotKey script will run in the background.
  10. Press the “F3” key to close all open windows.

Detailed instructions:

First, download and install AutoHotKey if it is not already installed on your Windows.

Download AutoHotKey: https://www.autohotkey.com/download/

First, you will need to create an AutoHotKey script. To do so, right click on the desktop and select “New > Text Document”.

Double click on the newly created text file. It should open in Notepad. Now paste the following script into the text file. Press “Ctrl+S” to save.

Note: The default keyboard shortcut is F3. If you would like to use another hotkey of your choice, we recommend that you check AutoHotKey’s hotkey documentation – https://www.autohotkey.com/docs/Hotkeys.htm

4748

After saving, close the fileSave the file and close it. Then rename the file to “CloseAllWindows.ahk”. If you care to, you can name the file whatever you like. However, replace the .txt extension with .ahk.

Once you have renamed the file, double click on it.

While the script is running in the background, press “F3” to close all open windows. Applications minimized in the overflow corner of the taskbar/corner menu will not close.

Alternative:

If you do not want to use AutoHotKey, you can use the PowerShell command in the batch file to close all open windows. The drawback of this script, however, is that it does not close File Explorer windows and is quite slow.

Create a new text file by right-clicking on the desktop and selecting “New > Text Document”. Press “Ctrl+S” to save the file.

<

9721

> Next, rename the file to “CloseAllWindows.bat”.

Double-click the file and run it. Exit Windows immediately except for File Explorer.

That’s it. It is as easy as closing all Windows at once using a shortcut.

We hope you find this simple and easy guide to using Windows helpful.

If you get stuck or need help, send us an email and we will do our best to help.

YouTube video: Close all open windows at once


Rate article
We provide high-quality and detailed Windows tutorials