Quick fix: Open PowerShell as Admin. Stop Explorer: Stop-Process -Name explorer -Force. Delete thumbnail cache: Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\thumbcache_*.db" -Force. Restart Explorer: Start-Process explorer. Thumbnails regenerate as folders are browsed. Fixes broken / wrong thumbnails.
Thumbnail cache holds previews for images, videos, documents. When cache corrupts: thumbnails show wrong file, are blank, or show old versions. Rebuilding forces fresh generation from actual files.
Affects: Windows 11.
Fix time: ~5 minutes.
What causes this need
Thumbnail cache files (thumbcache_*.db in %LOCALAPPDATA%\Microsoft\Windows\Explorer\) speed up File Explorer thumbnails. Reasons to rebuild:
- Thumbnails show wrong image (cache out of sync).
- Black / blank thumbnails for valid files.
- Corrupted DB after disk error.
- Privacy: clear viewed file history.
- Cache too large; need to reset.
Method 1: PowerShell script for full rebuild
The standard route.
- Open PowerShell as Admin.
- Run this script:
# Stop Explorer Stop-Process -Name explorer -Force # Delete thumbnail cache Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\thumbcache_*.db" -Force -ErrorAction SilentlyContinue Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache_*.db" -Force -ErrorAction SilentlyContinue # Restart Explorer Start-Process explorer Write-Host "Thumbnail cache rebuilt" - Wait. Explorer restarts.
- Browse to a folder with images. New thumbnails generate (takes time for large folders).
- For specific user cache: cache is per-user. Run script as the user, not Admin (without elevation).
- For multi-user PC: each user clears their own cache.
- For automated: schedule via Task Scheduler.
This is the standard usage.
Method 2: Use Disk Cleanup for GUI
For non-PowerShell users.
- Open Disk Cleanup: Win+R →
cleanmgr.exe. - Pick C: drive. OK.
- Tick Thumbnails.
- Click OK. Confirms deletion.
- Wait. Cache cleared.
- Restart File Explorer (Task Manager → right-click Explorer → Restart).
- Browse folder. Thumbnails regenerate.
- For batch cleanup: cleanmgr /sageset:1 + /sagerun:1 with Thumbnails option.
- For Settings approach: Settings → System → Storage → Temporary files. May include thumbnail cache.
This is the GUI route.
Method 3: Per-folder thumbnail refresh
For specific folder.
- If problem is in one folder only:
- Open File Explorer to that folder.
- View menu → pick Refresh (F5).
- For deeper refresh: change view to Details, then back to Large icons. Forces re-render.
- For specific file: right-click file → Properties → Details. View metadata, refresh thumbnail.
- For local thumbnail cache cleanup per-folder: not directly supported. Use Method 1 for full rebuild.
- For chronic thumbnail issues in specific folder: check folder permissions. User must have Read.
- For File Explorer caching wrong file: combined explorer + thumbnail issue. Restart Explorer.
- For network folders: thumbnails cached locally. Same procedure.
This is the per-folder.
How to verify the fix worked
- Folders show new fresh thumbnails after refresh.
- %LOCALAPPDATA%\Microsoft\Windows\Explorer\ shows recently-modified thumbcache_*.db (newly generated).
- No more broken / wrong thumbnails.
- Disk space initially smaller (no cache), grows as thumbnails regenerate.
If none of these work
If thumbnails still broken: Disable thumbnails entirely: Folder Options → View tab → tick Always show icons, never thumbnails. Saves space, slower image preview. For specific file types: codec or shell extension missing. Install codec pack for video. For PDF: install Adobe or Foxit. For corrupted files: thumbnail generation may crash Explorer. Check Event Viewer → Application logs. For OneDrive / cloud-only files: thumbnail generated on first download. Trigger by hovering or right-clicking file. For chronic Explorer crashes: sfc /scannow + dism /online /cleanup-image /restorehealth. For HEIC / WebP images: install HEIF Image Extensions from Microsoft Store. For very large folders (10000+ files): Explorer may struggle. Use Windows search instead. For chronic broken: Reset This PC → Keep my files.
Bottom line: PowerShell as Admin: stop Explorer → delete thumbcache_*.db in %LOCALAPPDATA%\Microsoft\Windows\Explorer\ → restart Explorer. Or use Disk Cleanup → tick Thumbnails. Folder views regenerate fresh thumbnails.