If any of your icons aren’t displaying, it means you need to refresh your icon cache. Icon cache is a database file (iconcache.db) that has a copy of each icon for faster access. Whenever Windows needs an icon, it draws from the cache rather than retrieving the icon images from the original application. It makes the programs load faster.
How to Access Icon Cache
Follow these steps to access iconcache.db:
- Open File Explorer, click the ellipses (3 dots) on the top and then click Options from the menu.
- From the popup, switch to the View tab. There, select “Show hidden files, folders, or drives” and uncheck the box next to “Hide protected operating system files.”
- Click Apply and Ok to save the changes.
- Now navigate to the following using File Explorer and you shall see iconcache.db. Replace UserName with the your user account.
Now that you know where the iconcache.db files are stored, you can proceed to the next phase: refreshing the icon caches.
Refresh Icon Cache in Windows
If your icon cache is corrupted or Windows is not able to create the new image of the replaced icon, you need to rebuild or refresh the icon cache.
To refresh the icon cache, just delete the iconCache.db file and Windows will automatically start rebuilding the new cache. Follow these steps below:
- Open Command Prompt with administrative privileges.
- Now navigate to the Explorer folder (storing the iconcache.db files) using the given command. Replace Username with your user account name:
cd /d C:\Users\<em>Username</em>\AppData\Local\Microsoft\Windows\Explorer
- Now type in dir to confirm that you are in the correct directory.
- Now run the following command to kill all explorer.exe processes. Before you do, make sure to save any open work.
taskkill /IM explorer.exe /f
- The desktop and other explorer apps will now vanish, except for the Command Prompt. Run the following command to delete all iconcache files in the directory.
- Now open the Task Manager by using the CTRL + Shift + Esc shortcut keys, and click File in the top-left corner. There, click Run new task.
- In the Create new task dialog box, enter explorer.exe and hit Enter.
- Now that explorer is re-running, use the interface to sign out of your account and then sign back in.
Once you sign back in, you will notice that any changes made to the system icons will have taken effect.
Another quick way to refresh your system’s icon cache is by using a single command the Command Prompt with administrative rights:
However, according to various sources on the internet, this command seems to refresh the icon caches on Windows 10 and 11. However, after testing it out ourselves, it did not work for us. That said, some users have had success with this command, and seems to do the trick.
If it does not work for you, you can always try the method given above to refresh your icon cache.