How to Fix File Explorer Opening on Startup in Windows 10 and 11

·
7 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

File Explorer opens on its own every time you log into Windows, a folder window sitting on your desktop before you’ve done a thing. The most common causes are the “Restore previous folder windows at logon” setting, a startup shortcut someone left behind, or a third-party app launching it for you.

Fix #1: Uncheck “Restore previous folder windows at logon”

This Folder Options setting tells Windows to reopen whatever File Explorer windows were open when you last shut down. If it’s checked and you had a folder open at shutdown, it comes back at every boot. Some Windows 11 builds had a bug where this option reopened windows unreliably, which Microsoft later fixed in a File Explorer update, so keep Windows updated too.

Windows 11

  1. Open File Explorer.
  1. Click the … (ellipsis) button in the toolbar and select Options.
  1. In the Folder Options window, select the View tab. Under Advanced settings, scroll to “Restore previous folder windows at logon” and uncheck it.
  1. Click Apply, then OK.
  1. Restart your PC and check if the window reappears.
File Explorer on Windows 11 with the ellipsis (…) menu open in the toolbar and Options highlighted
Folder Options View tab on Windows 11 with Restore previous folder windows at logon unchecked under Advanced settings

Windows 10

  1. Open File Explorer and click the View tab in the ribbon.
  1. Click Options on the far right of the ribbon.
  1. In the Folder Options window, select its View tab, then under Advanced settings uncheck “Restore previous folder windows at logon”.
  1. Click Apply, then OK, and restart.
File Explorer on Windows 10 with the View tab open and the Options button visible on the far right of the ribbon

Fix #2: Delete shortcuts from the Startup folders

A shortcut pointing to File Explorer or a specific folder sitting in a Startup folder will open that location at every login. This is the most direct cause when a particular folder (Documents, a network drive, etc.) keeps appearing. If you’ve already turned off Restore previous folder windows at logon and a specific folder still opens, check here next.

  1. Press Win+R, type shell:startup, and press Enter. This opens your personal Startup folder.
  1. Look for a shortcut that points to File Explorer (explorer.exe), a folder path, or a specific drive. Right-click it and select Properties to check its Target before deleting; leave shortcuts for apps you recognize and use.
  1. Press Win+R again, type shell:common startup, and press Enter. This opens the All Users Startup folder.
  1. Check and delete any Explorer or folder shortcuts here the same way.
  1. Restart your PC and test.
File Explorer showing the contents of the shell:startup folder with an example shortcut to a folder or File Explorer visible

Fix #3: Disable the startup entry in Task Manager

If an app, rather than a plain shortcut, is launching File Explorer at login, Task Manager’s Startup tab is the fastest place to find and stop it. This is also worth checking if, as in this Microsoft Q&A thread, folders keep reopening even after you’ve cleared the Folder Options setting.

  1. Press Ctrl+Shift+Esc to open Task Manager. In Windows 10, click More details if it’s in compact mode.
  1. Click the Startup apps tab (labeled Startup in Windows 10).
  1. Look for entries that mention File Explorer, Explorer, or a folder or drive that opens at boot. Also watch for third-party utilities: backup apps, cloud sync tools, or OEM software from your PC’s manufacturer.
  1. Right-click any suspicious entry and select Disable.
  1. Restart and check whether the window still appears.
Task Manager Startup apps tab on Windows 11 with an entry selected and the right-click Disable option visible

Fix #4: Turn off the app in Settings → Apps → Startup

Settings gives you a simpler on/off toggle for the same startup apps, which some people find easier to scan.

  1. Press Windows+I to open Settings.
  1. Go to Apps > Startup.
  1. Look for any app that could be opening a File Explorer window, cloud sync apps (OneDrive, Dropbox, Google Drive), OEM utilities, or backup software.
  1. Toggle the switch to Off for any suspect app.
  1. Restart and test.
Windows 11 Settings > Apps > Startup with a list of startup apps and toggle switches, one toggled Off

Fix #5: Change AutoPlay settings

If File Explorer only opens when you have a USB drive, memory card, or other external device plugged in at boot, AutoPlay is the trigger, not a persistent startup entry.

  1. Press Windows+S, type AutoPlay, and select AutoPlay settings from the results.
  1. Either turn off “Use AutoPlay for all media and devices” entirely, or scroll down and set Removable drive and Memory card to Take no action.
  1. Close Settings and restart your PC.
AutoPlay settings page in Windows 11 with the "Use AutoPlay for all media and devices" toggle visible and the Removable drive dropdown set to "Take no action"

Fix #6: Check for third-party software

Some apps can be configured to open a File Explorer window at login. Categories worth checking:

  • OEM utilities from your PC’s manufacturer that launch at sign-in
  • Cloud sync apps (OneDrive, Dropbox, Google Drive), which may open their synced folder after setup or sign-in
  • Backup software that may open a destination folder in Explorer after a run
  • Mapped network drives or scripts that open a folder when they connect at sign-in

If the problem started around the time you installed something new, that app is a good first suspect. Open the app’s own settings and look for an option like “Open folder at startup,” “Launch at login,” or “Auto-open after sync,” and disable it there first. If no such option exists, disable the app via Task Manager’s Startup tab (Fix #3) or uninstall it entirely via Settings > Apps > Installed apps. For an example of users troubleshooting folders that keep reopening, see this r/Windows11 discussion.

Fix #7: Correct the Winlogon Shell and Userinit registry keys

Two registry values under Winlogon control which shell Windows runs and how your session initializes. If either has been changed, for example by a third-party installer or malware, File Explorer can misbehave at startup.

Warning: Editing the registry incorrectly can make Windows unstable. Back up the registry before making any changes, and don’t change any values other than the ones named below.

Step 1: Back up the registry

  1. Press Win+R, type regedit, and press Enter.
  1. In Registry Editor, click File > Export.
  1. Choose a save location, name the file (e.g., registry-backup-2026), and click Save.

Step 2: Check the Shell and Userinit values

  1. In Registry Editor, navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  1. Find the Shell value in the right pane. It should read exactly: explorer.exe. If it contains any other programs or folder paths, remove the extras so only explorer.exe remains.
  1. Find the Userinit value. On a standard installation it reads C:\Windows\system32\userinit.exe, (the trailing comma is intentional). If Windows is installed on a different drive or folder, the path uses that location instead; only remove extra programs appended after the comma, and leave the path itself alone if it matches your Windows folder.
  1. Close Registry Editor and restart your PC.
Registry Editor showing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon with Shell set to explorer.exe and Userinit showing C:\Windows\system32\userinit.exe

Fix #8: Clean up the Run and User Shell Folders registry keys

If Winlogon looks correct but File Explorer still opens uninvited, two more registry locations under your user profile may contain leftover entries that force it open at login.

Back up the registry first (see Fix #7, Step 1), then:

  1. In Registry Editor, navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  1. Check the Startup value. By default it reads %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. If it points somewhere unexpected, correct it to that default path.
  1. Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  1. Look for values whose Data runs explorer.exe with a folder path, or opens a folder directly. Delete only entries you’ve confirmed are opening the folder; if a value names an unfamiliar program, search for it before removing it, since many legitimate apps start from this key.
  1. Close Registry Editor and restart.
Windows 11 Registry Editor at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run with a suspicious value selected

When none of these work

If File Explorer still opens after all eight fixes, run System File Checker. It repairs corrupted protected Windows files, but it won’t remove a third-party startup entry, so use it only after the checks above. Open an elevated Command Prompt (search for cmd, right-click it, and select Run as administrator), type sfc /scannow, and press Enter. Let it complete, then restart. If the behavior survives that, run a full scan with Microsoft Defender or Malwarebytes; unwanted startup behavior that survives all of the above can be a sign of malware. NinjaOne’s guide to the Restore previous folder windows setting also covers how admins can control it across many PCs.

Conclusion

Start with Fix #1 (unchecking “Restore previous folder windows at logon”) and Fix #2 (removing a startup shortcut), since they’re the quickest to check. If something you installed recently kicked it off, Fix #6 is your next stop. Save the registry fixes (Fixes #7 and #8) for when the simpler options have come up empty, and change only the values described.