
Fix Windows 11 File Explorer Hanging After May 2026 Update
Resolve Windows 11 File Explorer hanging, explorer.exe high CPU, and freezes opening folders after the May 2026 cumulative update. Registry and Gallery indexing fix.
What is the Windows 11 File Explorer Hanging Issue?
After the May 2026 Windows 11 cumulative update (KB5083xxx series), File Explorer hangs for 5-90 seconds when opening folders containing many images or videos, opening the new Gallery view, or browsing mapped network drives. The explorer.exe process spikes to 25-60% CPU on a single core while the UI thread blocks waiting on the indexer. The regression sits in the duplicate-detection background pass that ships with the redesigned Gallery — it now runs against ALL Pictures/Videos library scopes, not just the Gallery view itself, so even traditional folder browsing triggers it.
When does the hanging occur?
- Opening a folder with 200+ images or videos for the first time
- Switching to Gallery view in This PC > Pictures
- Right-clicking inside a folder containing media files
- Opening any folder on a mapped SMB / network drive
- Browsing OneDrive / SharePoint folders with cloud-only files
- After waking from sleep on a system that was idle overnight (indexer backlog)
- When File Explorer is the first thing launched after the May 2026 KB applied
Common causes
- New duplicate-detection pass in Gallery scanning Pictures/Videos libraries continuously
- Thumbnail cache regeneration on network drives (no longer cached locally by default after May 2026)
- Windows Search Indexer (
SearchIndexer.exe) stuck rebuilding the property store - Cloud-only OneDrive files triggering hydration on hover during preview generation
- New "Recommended" section on Home page running file enumeration on every Explorer launch
- Third-party shell extensions incompatible with the May 2026 context menu refactor
- Corrupted
IconCache.dbafter the update
Step-by-step fixes
- Disable network drive thumbnail caching via registry — the actual fix for ~40% of cases. Open
regedit, navigate toHKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer. Create a new DWORD (32-bit) namedDisableThumbnailsOnNetworkFoldersand set it to1. Sign out and back in. This is the change that gets buried in 8-comment-deep Reddit threads. - Disable the Gallery duplicate-detection background task — open Task Scheduler (
taskschd.msc), navigate to\\Microsoft\\Windows\\Gallery\\, right-clickDuplicateDetectiontask, select Disable. Restart Explorer (Task Manager > Windows Explorer > Restart). - Turn off "Show files from Office.com" and "Show recently used files" — File Explorer > ... > Options > General tab > Privacy section, uncheck both. This stops the Home page from enumerating cloud files on every launch.
- Switch Pictures and Videos libraries off Gallery view — open File Explorer, navigate to Pictures, View > Details. Same for Videos. Forces the classic list view that bypasses the duplicate scan.
- Rebuild the Windows Search index — Settings > Privacy & security > Searching Windows > Advanced indexing options > Advanced > Rebuild. Expect the index to take 30-180 minutes to rebuild. CPU usage will spike during that time but Explorer will be fast again afterward.
- Clear the icon cache — close all Explorer windows, then in elevated CMD:
taskkill /f /im explorer.exe && del /f /q "%LocalAppData%\\IconCache.db" && del /f /q "%LocalAppData%\\Microsoft\\Windows\\Explorer\\iconcache*.db" && start explorer.exe. - Make OneDrive files "Always keep on this device" for hot folders — right-click the folder in OneDrive, choose "Always keep on this device". Stops on-demand hydration during preview generation in Explorer.
- Audit shell extensions with Autoruns — download Autoruns from Sysinternals (Microsoft official), run as admin, Explorer tab, uncheck non-Microsoft entries one at a time, restart Explorer between each. Common May 2026 culprits: older versions of 7-Zip (pre-24.09), WinRAR (pre-7.10), Dropbox shell extension (pre-205.4).
Registry quick reference
The four DWORDs that matter for May 2026 hanging:
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer
DisableThumbnailsOnNetworkFolders = 1
DisableThumbsDBOnNetworkFolders = 1
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced
ShowFrequent = 0
ShowRecent = 0Apply, sign out, sign back in. Do not just restart Explorer — these registry keys are read once per session.
Diagnosing with Performance Monitor
To confirm the cause is indexer or duplicate-detection:
- Open Resource Monitor (
resmon), CPU tab - Reproduce the hang by opening a problem folder
- Look at
explorer.exeThreads column — if Wait Reason isUserRequestand the thread is callingwindows.storage.dllorWindows.AI.MachineLearning.dll, you're hitting duplicate detection - If Wait Reason is
WrFreePageandSearchIndexer.exeis at high CPU, the indexer is the bottleneck - If
OneDrive.exeis at high disk I/O, cloud hydration is the cause
If it still doesn't work
If hanging persists after all eight fixes, the cumulative update likely needs to be uninstalled. Settings > Windows Update > Update history > Uninstall updates, remove the May 2026 KB. Windows will block reinstallation for 7 days using wushowhide.diagcab (downloadable from Microsoft Support). Microsoft historically ships a fix in the C-week (third week) preview update or the next B-week (second Tuesday) cumulative. As a permanent workaround for fleet machines, you can disable the Gallery feature entirely via Group Policy: gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > File Explorer > Turn off Gallery. For deeper diagnostics, capture a Windows Performance Recorder trace (wpr -start GeneralProfile -filemode, reproduce hang, wpr -stop trace.etl) and open in Windows Performance Analyzer to see the exact blocking call stack.
Related errors
Resolve Windows 11 File Explorer freezing when right-clicking files or folders. Fix context menu hangs, unresponsive Explorer, and right-click delays in Windows 11 2025 builds.
Fix Windows 11 Start Menu not working or not opening after a Windows Update. PowerShell re-registration, SFC/DISM repair, IrisService fix, and registry solutions.
Fix Windows 11 KB5081621 May 2026 update problems: audio crackling, stutter, sleep wake failures, and DPC latency spikes after the cumulative update.