When File Explorer opens by itself, the most useful first check is what was happening right before it appeared. If it happens after plugging in media, check AutoPlay. If it happens at sign-in, look at startup items and scheduled tasks. If it happens after a crash or restart, focus on Explorer itself. This guide shows a safe order to test Windows 10 and 11.

What it means when File Explorer opens on its own

What it means when File Explorer opens on its own

File Explorer is Windows’ built-in file browser for finding, opening, organizing, and managing files and folders. Its process is explorer.exe, and in Windows 11 it can be opened from the taskbar, Start menu, or with Windows key + E. It can also be restarted from Task Manager. (Microsoft Support)

Opening on its own vs closing or crashing

Opening unexpectedly and closing unexpectedly are not the same problem. If File Explorer opens after you insert a USB drive or other removable media, AutoPlay is a likely place to check. If it closes and reopens, Explorer may be restarting after a crash.

Why the trigger pattern matters more than the error message

The fastest way to narrow the cause is to note when it happens. Login points to startup items or scheduled tasks, plugging in media points to AutoPlay, and a specific keypress points to input. That keeps you from changing settings that do not match the trigger.

📊 In Windows 11, File Explorer can be opened from the taskbar, Start menu, or with Windows key + E. Source: Microsoft.

Which cause is most likely?

Start with the trigger instead of guessing. If it happens after a USB drive, external drive, CD, or DVD is connected, AutoPlay is the first place to check. If it happens at sign-in, check startup items and scheduled tasks. If it happens after a crash or restart, restart explorer.exe and run system checks if needed. Windows 11 22H2 became available for everyone as a general update in January 2023, and the issue was still present as of Windows 11 Build 22621.1413, so recent updates can also matter.

Trigger pattern Possible cause First test Next safest action
opens on USB insert AutoPlay Remove the device Set AutoPlay actions to Take no Action
opens at login Startup item or scheduled task Restart Windows Explorer Open Task Scheduler and review timed tasks
opens when idle Scheduled task or connected device Disconnect removable drives Check for tasks that run at the time it opens
opens with a specific keypress Keyboard input Test the keyboard in Notepad Unplug controllers and test again
opens with closing loops Explorer restart Restart Windows Explorer Run SFC /scannow

How to use the table before changing settings

Match the symptom first, then try the first test in the table. If the popup starts only after inserting removable media, begin with AutoPlay. If it starts at sign-in, check startup items and scheduled tasks first. That keeps the fix order simple.

Could a stuck key or controller be triggering it?

Yes. A stuck E key, Windows key, or controller input can open File Explorer. Test the keyboard and remove other input devices before moving to software steps.

  1. Open Notepad and press the E key, Windows key, and Ctrl + Shift + Esc one at a time to see whether one key repeats or opens Explorer.
  2. Press Windows key + E; if that shortcut opens Explorer while no key is held, inspect the keyboard for debris or a trapped key.
  3. Unplug all game controllers, docks, and USB keyboard adapters, then test again.
  4. If the issue stops, reconnect devices one at a time until the trigger returns.

Is AutoPlay causing File Explorer to open by itself?

AutoPlay can trigger File Explorer when a USB flash drive, CD, DVD, or external hard drive is connected. Microsoft notes that external drives may be involved, and the safest first move is to check the AutoPlay settings and set the actions in there to Take no Action.

  1. Open Control Panel > Hardware and Sound > AutoPlay.
  2. Clear Use AutoPlay for all media and devices.
  3. Set removable drives and memory cards to Take no Action.
  4. Remove the USB drive or disc, reboot, and reconnect the device once to test.

How to stop File Explorer from opening when you plug in a USB drive

Turn AutoPlay off first, then test the same device again. If File Explorer no longer opens, the setting was the trigger. If it still opens, check whether another external drive behaves the same way.

Why does File Explorer open at login or after startup?

Login-time popups usually point to a startup item or a scheduled task. In Windows 11, File Explorer Home can also be involved if it opens with pinned folders. Start by relaunching Explorer, then check startup behavior and timed tasks.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Select Windows Explorer, choose Restart, or end explorer.exe and relaunch it.
  3. Open File Explorer > Options and change Open File Explorer to This PC if Home is opening when you do not want it to.
  4. Clear File Explorer history and remove any broken pinned items from Home or Quick access.
  5. Open the Task Schedular utility in Windows and check for any task(s) that may be set to run at the specific times that File Explorer is opening.

What to look for in Home and Quick access

Windows 11 Home can show pinned folders and recent items. Remove any pinned item that points to a missing network path, disconnected drive, or renamed folder. If the issue stops after clearing history and unpinning items, one of those entries was likely the trigger.

Why does File Explorer keep opening when the PC is idle?

If it happens while the PC is sitting untouched, check for external drives and timed tasks first. Then use a clean boot to limit background software that may be starting with Windows. Test again after each change so you can see which step makes the difference.

  1. Disconnect external storage devices and test again, including USB flash drives, CDs, DVDs, and external hard drives.
  2. Open the Task Schedular utility in Windows and check for any task(s) that may be set to run at the specific times that File Explorer is opening.
  3. Run a clean boot with msconfig and disable non-Microsoft startup items.
  4. After the clean boot, test idle time again before re-enabling apps.

If that didn't work, try this next

If File Explorer still opens while idle after the simpler checks, review the same trigger again and look for a timed task or external device that reconnects. If the problem only appears in one session, test in another user account. If it appears everywhere, continue with system checks.

Run the system checks that fix corrupted files

Run the system checks that fix corrupted files

If the problem continues after input, AutoPlay, startup, and task checks, run standard Windows repair checks. Start with SFC, then run Windows Security Quick scan. These steps are safe, built-in checks that can help when the behavior is tied to Windows files or unwanted software.

  1. Open Command Prompt as administrator and run sfc /scannow.
  2. Open Windows Security and run a Quick scan with Microsoft Defender.
  3. If the behavior remains, run a second opinion antivirus scan.
  4. Check Windows Update history if the problem started right after a recent update.

Should I run SFC or scan for malware first when Explorer keeps popping up?

Run SFC first if the problem appears after crashes or login and there is no clear device trigger. Run Windows Defender Quick scan first if the behavior comes with other unusual app activity. Either way, complete both checks before moving to more disruptive steps.

Still not working?

Still not working?

If the simpler checks do not resolve it, test one more Windows account, then consider recovery options. Use the least disruptive step that still lets you see whether the problem follows the user profile or the system.

  1. Create a new local user account and test whether the popup follows the account.
  2. Use System Restore to roll back to a point before the problem started.
  3. If needed, perform a clean boot again and remove the newest startup app or update.
  4. Use Reset This PC or a repair install only after the simpler paths fail.

Prevention: Keep AutoPlay set to Take no Action for removable media, and remove broken items from File Explorer Home before they load at sign-in.

Frequently asked questions

Why does File Explorer keep opening randomly?

Check the trigger first. If it happens after plugging in media, review AutoPlay. If it happens at sign-in, check startup items and the Task Schedular utility in Windows. If it happens with a specific shortcut, test the keyboard.

Why does my File Explorer keep closing randomly?

A close-and-reopen loop usually means Explorer is restarting. Restart explorer.exe from Task Manager, then run sfc /scannow if the loop comes back.

Why does File Explorer randomly close?

Start with Task Manager and restart Windows Explorer. Then run sfc /scannow and a Windows Defender Quick scan if the issue continues.

Why does File Explorer keep opening on its own?

Check what happens right before it opens. After plugging in removable media, check AutoPlay. After sign-in, check startup items and scheduled tasks. After a crash, restart Explorer first.

Could a stuck E or Windows key make File Explorer open repeatedly?

Yes. Windows key + E opens File Explorer in Windows 11, so a stuck key can trigger it repeatedly. Test the keyboard in Notepad and unplug controllers or other input devices if needed.

How do I stop File Explorer from opening when I plug in a USB drive?

Open Control Panel > Hardware and Sound > AutoPlay, clear Use AutoPlay for all media and devices, and set removable drives to Take no Action.

Should I run SFC or scan for malware first when Explorer keeps popping up?

Start with the step that matches the trigger best. Use SFC if the issue appears after a restart or crash. Use Windows Defender Quick scan if you also see other unusual system behavior.

Why does my File Explorer keep opening on its own?

Check whether it happens after USB insertion, at sign-in, during idle time, or after a crash. That will point you to AutoPlay, startup items, Task Scheduler, or Explorer restart checks.