Icon Cache - Rebuild

How to Rebuild the Icon Cache in Vista


information   Information
If you have any icons that are not displaying correctly in Vista, then rebuilding the icon cache will reset them. This will show you how to delete the icon cache, to clear it, so Vista will rebuild it after a restart.

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

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

Note   Note

  • This does not change the icons. It only clears the icon cache to get rid of any corruption and rebuilds the icon cache with the correct icons again.
  • If this is for a internet URL icons (favicons), in IE7 Favorites for example, then you will need to delete the Temporary Internet Files to reset these icons instead. For how, see: How to Delete the Internet Explorer Browsing History in Vista
Tip   Tip
If you only have problems with a particular file (file extension type) icon, then it may be a default association problem instead. The file extension will show the icon for the program that it is associated to. This happens when a program and file extenstion has lost their default associations with each other, or associated to a wrong program instead. To resolve this, either make sure that you have all of the default associations set for the program that the file extension is for, or make sure that you have the correct default program associated with the file extension type. For how to do this, see: How to Set Default Associations For a Program in Vista or How to Associate a Individual File Extension Type With a Program in Vista





OPTION ONE
Automatically Rebuild the Icon Cache

1. Click 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 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 the Start Menu, and type cmd in the search box and press enter.​
3. In the command prompt, Copy and Paste each command line below 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.​
  • 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 to restore the default associations of .ico (icon) files.​
That's it,
Shawn


 

Attachments

  • Rebuild_Icon_Cache.bat
    Rebuild_Icon_Cache.bat
    738 bytes · Views: 5,046
  • thumb_14323226850Configuration_File.png
    thumb_14323226850Configuration_File.png
    7.3 KB · Views: 5,184
Last edited:
Just wanted to let you know that this one worked for me.
Lost the icon of one of my harddrives, it was replaced by a generic one.
Rebuiding the cache brought it back
Thanx,

Benergy
 

My Computer

System One

  • CPU
    Intel Q6600
    Motherboard
    Gigabyte GA-P35-DS4 (rev. 1.1)
    Memory
    4 X 1Gb Team Xtreem Dark 800
    Graphics card(s)
    MSI RX2600XT
    Monitor(s) Displays
    Dell 2007WFP
    Screen Resolution
    1680 x 1050
    Hard Drives
    3x SAMSUNG HD321KJ 1x SAMSUNG HD501LJ
    PSU
    Cooler Master 550W
    Case
    Antec p180
Hi Benergy, and welcome to Vista x64 Forums. :party:

I'm glad to hear that it helped you. Thank you for the feedback.

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Thanks for this thread, however, I tried both options, but afraid to say, neither of them sorted out my particular issue. All my icons are fine except .sis and .exe files
 

My Computer

Hi GSI-R,

For the .exe files, try clicking on the .exe in the box here to download and use the reg file to see if it can help.

File association fixes for Windows Vista


For the .sis files, see the added Still Not Working section at the top of the tutorial and check to make sure that it has it's default program associated to it.

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Your welcome Micky.
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
For some reason, all desktop icons pointing to my F: drive were dead after I installed some different SATA drivers. They still worked.

I tried the bitdepth option and it worked for me :D sure is faster than a reboot! :)

Thanks :)
 

My Computer

Your welcome Wracky, and welcome to Vista Forums. :party:

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Hi MLBPlayer,

You can empty the Recycle Bin before or after the restart, but it would be best to wait until afterwards in case you need or want to restore the deleted IconCache.dbfor whatever reason.

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
brink,
I emptied after restart and my missing icons didn't show up and the iconcache.db wasnt that much smaller, by a few kb. do you think it would work if I emptied the recycle bin before restart?
 

My Computer

MLBPlayer,

It will not make any difference before or after.

What are the items that the icons are missing from?

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
MLBPlayer,

It will not make any difference before or after.

What are the items that the icons are missing from?

Shawn

I tried the method where you delete the icon cache an not emptyingthe recycle bin before restart and it didnt work theicon missing is the c drive icon (hard drive) I I'll try the methd where you emptynthe recycle bin befre restart and I let you know how it goes
 

My Computer

ok so i tried the method where i empty the recycle bin before restart and the hard drive icon is still not there...take a look:

attachment.php


its been like this since i downloaded ihound (ipod tracking software) and i moved the software thats supposed to go to the ipod to the c drive by accident and now there's no icon and its really bothering me! btw the icon cache went from 3.45mb to 3.24 mb not a big change why? thanks
 

Attachments

  • Capture.JPG
    Capture.JPG
    5.2 KB · Views: 3,867

My Computer

MLBPlayer,

I would go ahead and change the drive icon manually back to what it should be. You can use either method in this tutorial to do it, but use C:\Windows\System32\imageres.dll,30 for the default hard drive icon path instead. If you have another icon you would prefer to use instead, then that will be fine to.

http://www.vistax64.com/tutorials/111388-drive-icon-change.html

Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
MLBPlayer,

I'm glad to hear that you got it to work for you now. I updated the tutorial to reflect your findings.

Thank you for the feedback,
Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Shawn, I have about 1.5 TB of .avi files and only about half the thumbnails were showing up. I tried method 2 first because that seemed easiest. When I again cheked I now had about 80% showing thumbnails, but the rest still were not.

I then tried method #2, but made a mistake and when I rebooted I saw that the thumb nail cache db was still there though, but smaller, and I didn't have any thumbs. I deleted that file again, and rebooted and now I have no thumb nail cache db at all, and no thumbnails.

I have restarted my computer 4 times, and I have went to windows folder setting and ticked the box that says don't show thumbnail, hit apply, then unchecked and hit reply in an effort to make the thumbnails come back, but nothing works.

Do I just need to start my system a few more times, or did I screw up deleteing that cahe.db a second time?
 

My Computer

Back
Top