Windows 7 Forums Search


Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has 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 Windows 7
Published by Brink
12-27-2009
Default Icon Cache - Rebuild

How to Rebuild the Icon Cache in Windows 7


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.
Note   Note
This is not for any of the following icon issues:
  • A single shortcut icon that is not displayed properly. You may need to create a new shortcut directly from the source file to replace it instead.
  • All icons for a specific file extension display the wrong icon. You can restore the default file extension's associations to fix this icon instead.





OPTION ONE

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

3. Click on Run when prompted.

4. You will notice a very quick flash of a command prompt opening and closing.
NOTE: This deletes the IconCache.db file for you automatically.

5. Log off and log on, or restart the computer to rebuild the icon cache.
NOTE: This rebuilds and recreates a new IconCache.db file.




OPTION TWO

Use Command Prompt to Rebuild the Icon Cache

NOTE: This option uses the same command used in OPTION ONE, but you are doing it manually in the command prompt instead.
1. Open the Start Menu, and type cmd in the search box and press enter.



2. In the command prompt, type each command line below one at a time followed by pressing enter after each single line.
  • CD /d %userprofile%\AppData\Local
  • DEL IconCache.db /a
  • EXIT
3. Log off and log on, or restart the computer to rebuild the icon cache.
NOTE: This rebuilds and recreates a new IconCache.db file.




OPTION THREE

Manually Rebuild the Icon Cache
1. Set Folder Options to Show hidden files, folders, and drives.

2. In Windows Explorer, navigate to:
C:\Users\UserName\AppData\Local
3. Right click on the IconCache.db file and click on Delete. (see screenshot below)
Icon Cache - Rebuild-manual1.jpg
4. Click on Yes to confirm. (see screenshot below)
Icon Cache - Rebuild-manual2.jpg
5. The IconCache.db file has now been deleted. (see screenshot below)
Icon Cache - Rebuild-manual3.jpg
6. Log off and log on, or restart the computer to rebuild the icon cache.
NOTE: This rebuilds and recreates a new IconCache.db file.

7. Set Folder Options to Don't Show hidden files, folders, and drives.
That's it,
Shawn



Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 17,035
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
01-23-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
01-23-2010   #2
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


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


Windows 7 Ultimate 64-bit
Taiwan
 
 

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
.
03-31-2010   #4
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


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
04-01-2010   #5
itzmelou


Windows 7 Ultimate 64-bit
Taiwan
 
 


how about changing the files icon?
i can't find the change option in properties.
Attached Thumbnails
Icon Cache - Rebuild-4.jpg   Icon Cache - Rebuild-5.jpg  
My System SpecsSystem Spec
04-01-2010   #6
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


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
04-14-2010   #7
devildog93


Windows 7 Professional
Fox Creek, AB, Canada
 
 


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
Icon Cache - Rebuild-capture.png



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.

Icon Cache - Rebuild-capture2.png

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
Icon Cache - Rebuild-capture4.png

Do you have any ideas?

Last edited by devildog93; 04-14-2010 at 04:22 AM.. Reason: new info
My System SpecsSystem Spec
04-14-2010   #8
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


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
04-14-2010   #9
devildog93


Windows 7 Professional
Fox Creek, AB, Canada
 
 


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

Tutorial Tools



Similar Threads for: Icon Cache - Rebuild
Windows 7 Tutorial Category
Solved Increase Icon Cache Size Performance & Maintenance
Can't rebuild BCD Hardware & Devices
FireFox cache files & files w/o ext. use ME2 icon Browsers & Mail
rebuild of OEM/HP Chillout Room
Icon Cache Issues General Discussion


All times are GMT -5. The time now is 08:09 AM.



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

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