I know this error is infuriating — icons suddenly look like blank white squares or generic file placeholders, and you can't launch anything without that popup. I've seen it dozens of times on Windows 10 build 1909 and Windows 11 22H2. The fix is simpler than you think: clear the icon cache.
Quick fix: Clear and rebuild the icon cache
The root cause is a corrupted icon cache file named IconCache.db or, on newer Windows versions, a set of thumbnail database files. You don't need third-party tools. Here's the exact process I use on every affected machine.
- Kill Explorer. Open Task Manager (Ctrl+Shift+Esc), find Windows Explorer, right-click it, and choose End task. Your desktop will disappear — that's normal.
- Open Command Prompt as admin. Click Start, type
cmd, right-click Command Prompt, select Run as administrator. Confirm the UAC prompt. - Run these commands in order:
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer attrib -h -s -i thumbcache_*.db *.db del thumbcache_*.db *.db IconCache.db cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache del *.* /q /f - Restart Explorer. Back in Task Manager, click File > Run new task, type
explorer.exe, and hit Enter.
That's it. Your icons should rebuild within 30 seconds. If they don't, restart the machine once.
Why this works
Windows caches every icon it displays — file type icons, desktop icons, even small arrows on buttons. That cache lives in %userprofile%\AppData\Local\Microsoft\Windows\Explorer. When a file in that folder gets corrupted by a bad shutdown, a failed update, or a malware scan that quarantines the cache, you get error 0X00000586. Deleting those files forces Windows to rebuild them fresh from the system resources. No corruption, no error.
This error usually shows up after a forced restart or a disk cleanup tool that targets temporary files but misses the thumbnail cache.
Less common variants and edge cases
Sometimes the error appears only on certain folders — like the Desktop or Downloads. That's a different beast: it's usually a single corrupted .lnk file inside that folder. Here's the quick check:
- Find the broken shortcut: Open the problematic folder, press F5 to refresh. The icon that flips to blank is the culprit.
- Delete it and recreate it. Right-click the shortcut, choose Properties, note the target path. Delete the shortcut, then right-click the actual app or file, select Create shortcut.
If the error happens only in a specific app — say, a game launcher or an old photo editor — the app's own icon resource might be corrupted. Reinstalling the app fixes that 90% of the time. I've seen this with Steam games and Adobe Creative Suite 6 on Windows 10.
Prevention for the future
You can't stop corruption entirely, but you can reduce the odds. Two things I do on every machine I support:
- Don't force shutdown. Use Start > Power > Shut down, not the physical power button. A hard shutdown is the #1 cause of icon cache corruption.
- Set thumbnail cache to a reasonable size. Open File Explorer Options, go to the View tab, and uncheck 'Always show icons, never thumbnails' if you want thumbnails. Then also uncheck 'Show thumbnails instead of icons' if you prefer icons. Either way, the cache stays smaller and less prone to bloat corruption.
If you're still seeing the error after all that, run sfc /scannow from an admin Command Prompt — it checks system files for deeper corruption. But honestly, 9 times out of 10, the cache clear is all you need.