File Explorer opening randomly on its own in Windows 10 or 11 is an abnormal behavior that usually indicates either malware activity, a misconfigured startup script, a corrupted Windows Explorer process, or an active Windows bug. Identifying which of these is causing the behavior determines the correct fix.
Part 1. Run a Malware and Adware Scan First
The most common cause of File Explorer randomly opening is malware — particularly adware that hijacks Explorer to display advertising content or redirect to sponsored folders.
Step 1 — Windows Defender full scan:
- Open Windows Security (search in Start menu)
- Go to Virus & threat protection
- Click Scan options → select Full scan → Scan now
- Wait for the scan to complete (30–60 minutes for a full scan)
Step 2 — Malwarebytes scan (complementary):
Malwarebytes catches adware and PUPs (Potentially Unwanted Programs) that Windows Defender sometimes misses.
- Download and install the free version of Malwarebytes
- Run a Threat Scan
- Quarantine any detected threats
- Restart Windows and test whether File Explorer still opens spontaneously
⚠️ Important: If Windows Defender or Malwarebytes detect and remove threats, change your important passwords immediately from a separate, clean device — including email, banking, and any accounts accessed on the infected PC. Malware that opens Explorer as a decoy may also be logging keystrokes or stealing credentials.
Part 2. Check Startup Programs and Scheduled Tasks
A startup script or scheduled task can trigger File Explorer to open at regular intervals. This is a common result of software installations that add unwanted tasks.
Check startup programs:
- Press Ctrl + Shift + Esc to open Task Manager
- Click the Startup apps tab (Windows 11) or Startup tab (Windows 10)
- Look for any unfamiliar programs with descriptions like "Open folder," "File browser," or unusual publisher names
- Right-click suspicious entries → Disable
Check Task Scheduler:
- Press Win + S → search for Task Scheduler → open it
- In the left panel, click Task Scheduler Library
- Sort by Last Run Time to find tasks that run frequently
- Look for tasks that run
explorer.exewith folder path arguments - Right-click suspicious tasks → Disable or Delete
🗣️ r/techsupport user: "Found a scheduled task added by some freeware installer that ran 'explorer.exe C:\Users\Public\Downloads\sponsor_content' every 15 minutes. Deleted the task and the random File Explorer windows stopped immediately."
Part 3. Repair the Explorer.exe Process
A corrupted Windows Explorer process can cause erratic behavior including spontaneous windows opening. The System File Checker (SFC) can detect and repair corrupted system files.
Run SFC:
- Open Command Prompt as Administrator (right-click Start → Terminal (Admin) or Command Prompt (Admin))
- Run:
sfc /scannow - Wait for the scan to complete — this can take 10–20 minutes
- Review the results — SFC will report if it found and repaired corrupted files
Run DISM if SFC reports errors:
DISM /Online /Cleanup-Image /RestoreHealth
After DISM completes, run sfc /scannow again to confirm the repairs.
💡 Tip: If SFC reports "Windows Resource Protection found corrupt files but was unable to fix some of them," a DISM repair followed by another SFC run usually resolves this. In rare cases, a Windows repair install is needed.
Restart Windows Explorer:
A quick fix for an active misbehaving Explorer process:
- Open Task Manager (Ctrl + Shift + Esc)
- Find Windows Explorer under Windows processes
- Right-click → Restart
| Cause | Detection Method | Fix |
|---|---|---|
| Malware / adware | Windows Defender + Malwarebytes scan | Remove threats, change passwords |
| Startup program | Task Manager → Startup apps | Disable the program |
| Scheduled task | Task Scheduler → Task Library | Disable or delete the task |
| Corrupted Explorer.exe | SFC /scannow results | SFC + DISM repair |
| Windows bug | Process of elimination | Windows update or repair install |
Part 4. Check Context Menu Shell Extensions
Third-party software often adds shell extensions to the Windows context menu. Some of these can conflict with Explorer and cause unusual behavior.
Use ShellExView to diagnose:
- Download ShellExView (free, from Nirsoft — safe and reputable)
- Run it (no installation required)
- Sort by Company — non-Microsoft extensions from unknown publishers are highlighted in pink
- Disable suspicious extensions by selecting them → press F7
🗣️ r/Windows10 user: "ShellExView found three shell extensions from a PDF printer app I had uninstalled 2 years ago. Disabled them and the random Explorer popups stopped."
Part 5. Check for Windows-Specific Bugs
Occasionally, a Windows bug causes File Explorer to open spontaneously — particularly after updates. Known instances include:
- Windows 10 — OneDrive integration bug: OneDrive sync errors can trigger Explorer to open to specific folders
- Quick Access pinned locations auto-opening: Some users report pinned network locations causing Explorer to open when the network path becomes available
- Removable drive auto-open setting: Windows may be configured to automatically open File Explorer when a USB drive is connected
Check auto-open for removable drives:
- Go to Settings → Bluetooth & devices → AutoPlay
- Set Removable drive to Ask me every time or Take no action
Check OneDrive sync errors:
- Click the OneDrive icon in the system tray
- Check for any sync errors or notifications that might be triggering folder opens
💡 Tip: After eliminating malware and startup programs as causes, check the Windows Event Viewer for related entries: Win + S → Event Viewer → Windows Logs → Application → filter for Explorer.exe events around the times File Explorer opened unexpectedly.
Part 6. Recover Files Deleted by Malware With Ritridata
If malware that was causing File Explorer to open also deleted or encrypted files on your system, Ritridata can recover deleted files from your Windows drive.
Recovery steps:
- After removing the malware, immediately stop normal computer use on the affected drive
- Install Ritridata on an external USB drive — not the infected drive
- Run a Deep Scan on the affected system drive
- Preview recoverable files — documents, photos, and other data
- Recover to an external drive
💡 Tip: Ransomware-encrypted files (showing unusual file extensions) cannot be recovered by Ritridata — encryption prevents recovery without the decryption key. However, shadow copy-based recovery may work for some files: right-click a folder → Properties → Previous Versions tab to check.
FAQ
Q: Why does File Explorer open to a specific folder every time? If File Explorer opens to the same specific folder each time, a scheduled task, a startup program, or a shell extension is passing that path to explorer.exe. Use Task Scheduler (check for tasks with that folder path) and ShellExView to identify the source.
Q: Can a keyboard shortcut cause File Explorer to keep opening? If the Win + E keyboard shortcut is somehow being triggered repeatedly, a stuck Windows key, a macro keyboard, or HID device firmware issue could be responsible. Test by disconnecting external keyboards temporarily.
Q: How do I stop File Explorer from opening when I plug in a USB drive? Go to Settings → Bluetooth & devices → AutoPlay → set Removable drive to "Take no action" or "Ask me every time." This prevents Windows from automatically opening File Explorer when USB drives are connected.
Q: Is it safe to disable all non-Microsoft shell extensions with ShellExView? Disabling non-Microsoft shell extensions with ShellExView is generally safe — it does not delete the extensions, only disables them. You can re-enable them individually if you find a specific feature stops working. It is one of the safer diagnostic steps for Explorer issues.
Q: How do I tell if File Explorer is being opened by a virus? Use Task Manager to watch for explorer.exe being started by an unusual parent process. Open Task Manager → Details tab → find explorer.exe → right-click → Analyze wait chain or Go to parent process. If the parent process is something unfamiliar (not userinit.exe or explorer.exe itself), malware is likely involved.
Q: Could a Windows update cause File Explorer to open randomly? Yes — some Windows cumulative updates have contained bugs that caused Explorer to open randomly or crash repeatedly. If this started immediately after an update, check Windows Update history and consider rolling back the specific update: Settings → Windows Update → Update history → Uninstall updates.
