Rebuild the Windows Icon Cache – Fix Broken Tray and Taskbar Icons
When Windows tray or taskbar icons suddenly appear blank, wrong or generic, a corrupted icon cache can be the cause. This guide covers the quick CMD fix and the more thorough method.
The typical symptom
An application still works, but its icon in the notification area, taskbar, Start menu or desktop suddenly appears blank, wrong or generic. A damaged icon cache is a common candidate. Microsoft documents this class of blank-icon problem for the taskbar, Start menu and desktop.
The quick fix – restart Explorer and clear the icon cache
The practical approach is to stop Windows Explorer, delete the icon-cache files and start Explorer again. Microsoft documents variants using `taskkill`, `DEL /A` and `explorer.exe`.
Open Command Prompt as administrator
Save your work first. Then open Command Prompt with administrative privileges. The commands below are intended for classic CMD, not PowerShell. In PowerShell, `del` can be an alias for `Remove-Item` and therefore behaves differently.
Variant 1 – the classic CMD fix
This variant stops Explorer, removes the known `IconCache.db` and newer `iconcache*` files, then starts Explorer again. Not every Windows installation has both locations; that is normal.
taskkill /F /IM explorer.exe
del /A /Q "%LOCALAPPDATA%\IconCache.db"
del /A /F /Q "%LOCALAPPDATA%\Microsoft\Windows\Explorer\iconcache*"
start explorer.exe
What do `/A`, `/F` and `/Q` mean?
For `del`, `/A` allows selection of files based on attributes including hidden/system-related files, `/F` forces deletion of read-only files, and `/Q` suppresses confirmation prompts. For cache files, `/A /F /Q` is useful because cache databases can carry special attributes.
del /A /F /Q "...\iconcache*"
Variant 2 – target the modern Explorer cache
On current Windows versions, many icon-cache files live under `%LOCALAPPDATA%\Microsoft\Windows\Explorer`. Microsoft also documents deleting `iconcache*` from that location to rebuild the cache.
Why Explorer must be stopped first
While `explorer.exe` is running, cache files may be locked. That is why `taskkill /F /IM explorer.exe` comes first. The files can then be deleted and the shell restarted with `start explorer.exe`.
taskkill /F /IM explorer.exe
start explorer.exe
A complete CMD script
For help-desk work, a small `.cmd` script makes the procedure repeatable. Close open Explorer work and save everything before running it.
@echo off
echo Rebuilding the Windows icon cache...
echo.
taskkill /F /IM explorer.exe
del /A /Q "%LOCALAPPDATA%\IconCache.db"
del /A /F /Q "%LOCALAPPDATA%\Microsoft\Windows\Explorer\iconcache*"
start explorer.exe
echo.
echo Done. Windows Explorer has been restarted.
pause
If the icons are still broken
Then the icon cache may not be the only problem. Check whether only one application is affected. System-wide issues can involve Shell components or system files. Microsoft lists re-registering Shell Experience Host as a possible next troubleshooting step for persistent blank icons.
Icon cache is not thumbnail cache
`IconCache` and `thumbcache` are different databases. If only image or video previews are missing, that is a different problem. This guide targets application icons, not the complete thumbnail database.
Custom icons can have a different cause
After the cache is cleared, Windows rebuilds icon information. If an application points to an icon file that was moved or deleted, the problem can return. In that case the underlying reference, not the cache, needs fixing.
Practical rule
When applications still run but their tray, taskbar or Start-menu icons suddenly look wrong, rebuilding the icon cache is a fast first troubleshooting step: stop Explorer → clear cache → start Explorer.