Computer Opening Multiple Windows: How to Fix the Issue
In this article
Your computer keeps opening multiple windows because of a stuck keyboard key, a faulty mouse switch, malware, or software configured to launch multiple instances during startup. To fix this, first check for physically stuck keys (especially Enter, Ctrl, or Shift), then disable unnecessary startup programs in the Task Manager, and run a full system scan using Windows Security to remove potential adware.
When a computer begins opening windows spontaneously, it is usually a sign of an input error or a software conflict. This behavior can manifest as the same folder opening ten times in a row, a web browser launching multiple tabs of the same site, or random system windows appearing and disappearing. While this is often caused by a simple hardware glitch, it can occasionally indicate a deeper system corruption or a security breach. Identifying the pattern—whether the windows open only at boot, only when you click something, or completely at random—is the first step toward a permanent solution. Note that menu labels and settings paths may differ slightly depending on your version of Windows, your device manufacturer, or your regional settings.
What You'll Need
- A computer running Windows
- Administrative access to the system
- An optional external keyboard or mouse for testing hardware failure
- A stable internet connection for system updates and security scans
Step-by-Step
-
Inspect the Hardware for Stuck Keys
The most common cause of multiple windows opening is a "ghost" key press. If the Enter key or a shortcut key (like Ctrl or Shift) is physically stuck or has debris underneath it, the computer may interpret this as a rapid series of commands. Gently press and release every key on your keyboard, paying close attention to the Enter key, the Windows key, and the Ctrl keys. If you have a can of compressed air, use it to blow out any dust from beneath the keys. To confirm if the keyboard is the problem, unplug your external keyboard (if using a desktop) or connect a different USB keyboard to see if the issue persists. If the windows stop opening with a different keyboard, the original hardware is faulty and needs replacement. -
Test for Mouse Double-Clicking Issues
A worn-out mouse switch can cause a "double-click" or "multiple-click" effect, where a single physical press is registered by the computer as two or more clicks. This often leads to multiple folders or applications opening simultaneously. To test this, try clicking a folder slowly and deliberately. If two windows open despite a single click, the mouse is likely the culprit. You can test this further by plugging in a different mouse or using a laptop touchpad. If the problem disappears with a different pointing device, you should replace your mouse. -
Manage Startup Applications
Some programs are designed to launch at boot, and if they are misconfigured or crashing, they may attempt to restart themselves repeatedly, opening multiple windows. Press Ctrl + Shift + Esc to open the Task Manager. Click on the Startup tab (or Startup apps in newer versions). Look through the list for any applications that you do not recognize or that do not need to run immediately upon login. Right-click the suspicious or unnecessary app and select Disable. Restart your computer to see if the spontaneous windows have stopped appearing. -
Run a Malware and Adware Scan
Adware is a type of malicious software specifically designed to force open pop-ups and browser windows to generate advertising revenue. If windows are opening to random websites or promoting products, this is likely the cause. Open the Start menu, type Windows Security, and press Enter. Go to Virus & threat protection and select Scan options. Choose Full scan and click Scan now. This process may take an hour or more, but it will check every file on your hard drive for malicious scripts that trigger window pop-ups. If threats are found, allow Windows Security to quarantine or remove them. -
Clean Up Browser Extensions and Settings
If the multiple windows are specifically web browser windows (Chrome, Edge, etc.), the issue is likely an extension or a browser setting. Open your browser and navigate to the extensions menu (usually found under Settings > Extensions or by clicking the puzzle piece icon). Disable or remove any extensions you did not intentionally install or that look suspicious. Additionally, check your browser's pop-up blocker settings. In most browsers, this is found under Settings > Privacy and security > Site Settings > Pop-ups and redirects. Ensure that the option to block pop-ups is enabled. -
Run the System File Checker (SFC)
If the windows opening are system-related (like the Command Prompt or File Explorer) and hardware/malware checks have failed, there may be corrupted system files. Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator. In the black window, typesfc /scannowand press Enter. The system will scan all protected system files and replace corrupted versions with correct Microsoft versions. Once the scan is complete, restart your PC.
Common Mistakes
One of the most frequent mistakes users make is ignoring the physical hardware. Many people immediately assume they have a virus and spend hours running software scans when the actual cause is a crumb stuck under the Enter key. Always start with the physical checks before moving to software solutions. Another common error is downloading third-party "PC Optimizer" or "Registry Cleaner" software to fix the problem. Many of these tools are actually bloatware themselves and can introduce more pop-ups or instability to your system. Stick to built-in tools like Windows Security and the System File Checker.
Tips
To prevent this issue from returning, keep your computer's operating system and drivers updated. Outdated mouse or keyboard drivers can occasionally cause input glitches that mimic stuck keys. Additionally, practice "browser hygiene" by only installing extensions from trusted developers and avoiding clicking on suspicious links in emails or on unfamiliar websites, as these are the primary delivery methods for adware. If you use a laptop, be mindful of liquids and food near the keyboard, as sticky residue is a leading cause of keys that fail to spring back into place, triggering multiple window opens.
Troubleshooting
If none of the steps above resolved the issue, try booting your computer into Safe Mode. Safe Mode starts Windows with a minimal set of drivers and services. To do this, hold the Shift key while selecting Restart from the Power menu, then navigate to Troubleshoot > Advanced options > Startup Settings > Restart and press 4 or F4. If the windows stop opening in Safe Mode, the problem is definitely caused by a third-party driver or software application rather than a hardware failure or a core Windows bug.
If the problem started immediately after you installed a specific piece of software or a Windows update, you can use System Restore. This will roll your system settings back to a previous point in time without deleting your personal files. Navigate to Control Panel > Recovery > Open System Restore and choose a date before the problem began. Warning: This will uninstall any apps or updates installed after the chosen restore point.
Frequently Asked Questions
Is my computer hacked if windows keep opening?
Not necessarily. While adware is a form of unwanted software, it is often just annoying rather than a full-scale security breach. However, if you see windows opening to login pages asking for your passwords or if your files are being encrypted, you should disconnect from the internet and seek professional technical help immediately.
Why does File Explorer open multiple windows every time I start my PC?
This is often caused by a setting in the Folder Options. Open File Explorer, click the three dots (or View in older versions), and go to Options. Under the General tab, check the setting Restore previous folder windows at logon. If this is checked, Windows will reopen every folder you had open when you last shut down the computer.
Can a failing hard drive cause multiple windows to open?
It is unlikely. A failing hard drive usually causes the system to freeze, crash (Blue Screen of Death), or make clicking noises. Spontaneous window opening is almost always an input issue (keyboard/mouse) or a software trigger (malware/startup apps).
How can I quickly close all the windows that just opened?
If your screen is flooded with windows, you can right-click the application icon on the Taskbar (for example, the File Explorer icon) and select Close all windows. Alternatively, you can press Alt + F4 repeatedly to close the active window quickly.
Will resetting my PC to factory settings fix this?
Yes, a factory reset will fix the problem if it is caused by software, malware, or corrupted settings. However, it will not fix a physically broken keyboard or mouse. Be warned that a full factory reset will delete your installed applications and, depending on the option you choose, your personal files. Always back up your data to an external drive before performing a reset.