Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Icon Cache - Rebuild

Icon Cache - Rebuild

How to Rebuild the Icon Cache in Vista, Windows 7, and Windows 8
Published by Brink
27 Dec 2009
Published by

How to Rebuild the Icon Cache in Windows

information   Information
If one or more of your icons are not displaying correctly, or that your icon cache is corrupted, then you might consider rebuilding the icon cache to reset and reload the icon images into the icon cache in Vista, Windows 7, and Windows 8.

The icon cache is located at the hidden system folder location below:

C:\Users\User-Name\AppData\Local\IconCache.db


Note   Note
This will not help with any of the following icon issues:
  • A shortcut's icon that is not displayed properly due to the source of the shortcut being moved or deleted. You may need to recreate a new shortcut directly from the source (ex: program's exe) file to replace it instead.
  • All icons for a specific file extension display the wrong icon. This may be do to setting the wrong association for what program to open the file extension instead. You can restore the default file extension's associations to fix this icon instead.



OPTION ONE
Automatically Rebuild the Icon Cache
1. Click/tap on the download button below to download the file below.
Rebuild_Icon_Cache.bat
download
2. Save the file to your desktop, and run it.

3. Click/tap on Run when prompted.

4. Follow the instructions in the command prompt to rebuild the Icon Cache.

5. Restart your computer to generate a new IconCache.db file.

6. If the icons are still not displaying properly, then download and merge the ICO option in this tutorial for Windows 7 or Windows 8 to restore the default associations of .ico (icon) files.



OPTION TWO
To Manually Rebuild the Icon Cache using the Command Prompt
1. Close and save anything that you are working on. This command will kill explorer and restart the computer when completed.

2. Open a command prompt in Windows 7 or Windows 8.

3. In the command prompt, Copy and paste each command line below exactly as is one at a time and press enter after each command.


WARNING: The last command will restart the computer, so be sure to close and save anything that you are working on first.
  • ie4uinit.exe -ClearIconCache
  • taskkill /IM explorer.exe /F
  • DEL "%localappdata%\IconCache.db" /A
  • shutdown /r /f /t 00
4. The IconCache.db file has now been rebuilt.

5. If the icons are still not displaying properly, then download and merge the ICO option in this tutorial for Windows 7 or Windows 8 to restore the default associations of .ico (icon) files.

That's it,
Shawn




23 Jan 2010   #1
Barefoot

Windows 7 Professional 64-bit
 
 

Thanks Shawn. I read another tutorial that was incorrect in a few places. As always your tutorial is right on. I always like having automatic and manual options. I like to do it manually and I like to try to learn from opening up the automatic files.


My System SpecsSystem Spec
23 Jan 2010   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome Barefoot.
My System SpecsSystem Spec
31 Mar 2010   #3
itzmelou

Windows 7 Ultimate 64-bit
 
 
icons are displaying strange

I don't know what went wrong, but suddenly, some icons in my laptop are displaying strange.
But, when you click on it, it still works and launch the program correctly.
I've tried all the steps above, but nothing seems works.
Do you have any idea what happened and how to solve it?


Attached Images
 
My System SpecsSystem Spec
.


31 Mar 2010   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Lou, and welcome to Seven Forums.

You might see if changing the shortcut's icon back to the correct default one a few times may be able to restore it.

If not, then recreate the shortcut's directly from the program's EXE file to see if they display properly.

Hope this helps,
Shawn
My System SpecsSystem Spec
01 Apr 2010   #5
itzmelou

Windows 7 Ultimate 64-bit
 
 

how about changing the files icon?
i can't find the change option in properties.


Attached Images
  
My System SpecsSystem Spec
01 Apr 2010   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Lou,

If this it for Office, then you might see if uninstalling and reinstalling the program may restore all of them.
My System SpecsSystem Spec
14 Apr 2010   #7
devildog93

Windows 7 Professional
 
 

Hi Brink,


I am having a problem with my msconfig.exe desktop shortcut icon, for some reason, it is the only one in my many icons giving me a problem. I am following your tutorial, but I had a problem when I tried to download your Rebuild_Icon_Cache.bat file.

I thought this kind of weird as it is a .bat file which I thought Windows should be able to process. I feel comfortable going one of the other two ways, but should I be concerned that Windows is doing this? Actually noticed it came up as Rebuild_Icon_Cache.download
Name:  Capture.PNG
Views: 263473
Size:  38.9 KB



Maybe this is the problem. Just curious, as I am sure the other methods will work to get my icon back.



OK: now see if I can stump you on this one.

I got my MSCONFIG.EXE shortcut icon back, not with this tutorial but with this one:

Shortcut - Change Icon

OK? Following me so far.

SO anyways, I go to the actual file location of the original msconfig.exe in the Windows>system32 folder, and the EXE file itself has a generic icon.

Icon Cache - Rebuild-capture3.png


Funny thing is when I fixed the icon on the shortcut back using the change icon method, the original msconfig.exe file location was the source for the icon image itself. If it can be the source of the icon image for the shortcut repair, why can't it label itself (the .exe file )with the icon.

Name:  Capture2.PNG
Views: 263361
Size:  46.3 KB

You can see I have the icon repaired on the desktop now, but the .exe itself is missing the icon it had and is replaced with a generic one.

This defies all logic as it spawned a replacement image from its own filepath
but fails to even display the same image. Weird.

The location of the icon replacement that worked was here, like this
Name:  Capture4.PNG
Views: 263415
Size:  49.1 KB

Do you have any ideas?


My System SpecsSystem Spec
14 Apr 2010   #8
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Jay,

For the BAT file issue, try the BAT download in the tutorial below to restore the default associations for it to see if you are able to run a BAT file afterwards.

Default File Type Associations - Restore


Since it's a system file, you might see if running a sfc /scannow command may be able to fix it for you.

Hope this helps,
Shawn
My System SpecsSystem Spec
14 Apr 2010   #9
devildog93

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello Jay,

For the BAT file issue, try the BAT download in the tutorial below to restore the default associations for it to see if you are able to run a BAT file afterwards.

Default File Type Associations - Restore


Since it's a system file, you might see if running a sfc /scannow command may be able to fix it for you.

Hope this helps,
Shawn
Right on, I will give those a try. Thanks.
My System SpecsSystem Spec
Comment

 Icon Cache - Rebuild




Tutorial Tools



Similar help and support threads for2: Icon Cache - Rebuild
Windows 7 Tutorial Category
how to rebuild the cache for iconcache.db and readthe error log Performance & Maintenance
Icon Cache Problems General Discussion
Solved Automatically rebuild icon cache problem? General Discussion
Solved Rebuilding Icon Cache? General Discussion
Foobar icon cache General Discussion
Icon Cache Issues General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:18 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33