FIX: Corrupted desktop icons in Windows 10/7

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
Loading Comments
Affiliate Disclosure

fix corrupt pc desktop icons

Windows users often complain about corrupted desktop icons. The icons that Windows uses for your documents and programs are saved in an icon cache, so they can be displayed quickly instead of having to slowly load them every time. If for any reason, one or more Windows icons are corrupted, you can repair them by rebuilding the icon cache. Here is how to fix corrupted desktop icons in Windows 7 and Windows 10, as the approaches are different.

1. Rebuilding the icon cache in Windows 7

  1. Use a .bat file
  2. Use Command Prompt
  3. Delete the icon cache database
  4. Use third party software

2. Rebuilding the icon cache in Windows 10

  1. Use Command Prompt
  2. Manually delete the icon cache

Fix corrupted Windows 7 desktop icons

In Windows 7, the icon cache file is located in: C:Users<your username>AppDataLocalIconCache.db

Note: Replace <your username> with the actual login name for your Windows account.

You can rebuild the icon cache in Windows 7 in order to fix your corrupt desktop icons following one of the methods described below, depending on which one you find more easy to do:

Solution 1: Use a .bat file

In order to rebuild your icon cache file, please follow the steps described below:

  1. Open Notepad
  2. Paste the code below
  3. taskkill /F /IM explorer.exe
    cd /d %userprofile%AppDataLocal
    attrib –h IconCache.db
    del IconCache.db
    start explorer.exe
  4. Save as IconFix.bat
  5. Go to where you saved the file and double click on itbat file

— RELATED: Fix: Desktop Icons Missing in Windows 10

Solution 2: Use Command Prompt

If you feel more comfortable this way, you can use Command Prompt:

  1. Go to Start and search cmd
  2. Right-click and select Run as AdministratorCommand Prompt Run as administrator
  3. Run the following commands:

cd /d %userprofile%AppDataLocaldel IconCache.db

start explorer.exe

attrib –h IconCache.db

taskkill /F /IM explorer.exe


Solution 3: Delete the icon cache database

Icon cache is a hidden file located in the Local Folder. All you need to do is delete the IconCache.db file and restart your PC so that Windows creates a new IconCache.db file upon system restart.

  1. Open any folder
  2. Enable show hidden files option to see the Icon Cache file by going on the View tab, and enable Hidden items option from Show/ Hide sectionShow-hidden-items
  3. Navigate to C:UsersusernameAppDataLocal folder and then delete IconCache.db file. Replace <your username> with the actual login name for your Windows account.
  4. Restart your computer to rebuild the icon cache

Solution 4: Use third party software

If you do not feel comfortable to do any of these procedures by yourself and would rather prefer a software to safely delete the icon cache file, feel free to do this as there are many online tools that could help them with that.

Fix Windows 10 corrupted desktop icons

In order to rebuild the icon cache in Windows 10, you have to delete all the iconcache files that appear in this folder. It is not as simple as clicking on them and pressing Delete, though because those files are still in use by Windows Explorer and you cannot just delete them as you would delete a normal file.

In Windows 10, the icon cache file is located in: C:Users<your username>AppDataLocalMicrosoftWindowsExplorer.

Note: Replace <your username> with the actual login name for your Windows account.

Before proceeding to rebuilding the icon cache, close and save anything that you are working on. Now choose one of the solutions described below.

— RELATED: Icon maker software for PC to design your own Windows desktop icons

Solution 1: Use Command Prompt

If you chose the alternative of using, Command Prompt, please follow the steps below:

  1. Navigate to the Explorer folder on your C: drive
  2. Right click on Explorer and select Open command window here
  3. Type dir in order to make sure you are in the right place. You should see your iconcache files.
  4. Right click on the Windows taskbar and select Task ManagerTask Manager
  5. Select Windows Explorer within Task Manager and then End task. Once you close Windows Explorer, the taskbar and Start menu will be invisible but do not worry, it is a normal phase.Task manager windows exporer
  6. Type del iconcache* into the Command window. The asterisk after iconcache is necessary to make sure all files with names that start with iconcache will be included in the delete operation
  7. Type dir to make sure the icon cache files are gone. If one or more icon cache files are still listed, it means some applications are still running in the background so close them and repeat the procedure again, if necessary.
  8. Restart your computer

Solution 2: Manually delete the icon cache file

By following the steps described below, you will manually delete the icon cache file and restart your computer to let Windows 10 automatically create the new icon cache file:

  1. Open Windows Explorer, click the View tab and put check mark next to Hidden items
  2. Navigate to the following folder: C:Users<your username>AppDataLocal. <your username> is your account user name on the PC and “C” is the drive letter of the drive where Windows 10 is installed.
  3. Under Local directory, locate the file named IconCache (IconCache.db)
  4. Right-click on the file and then click DeleteDelete-icon-cache
  5. Right-click on the Recycle Bin icon on the desktop and then click Empty Recycle Bin to clear IconCache.db and other files
  6. Close all running applications and restart your computer

We hope we were able to help you to return your desktop icons to normal with one of the solutions described above. Let us know your comments in the section below.