Refresh Icon Cache Without Rebooting

Posted on

QUESTION :

Normally, to refresh the icon cache in Windows, we have to reboot.

Is there a way to refresh the icon cache in Windows 7/8 without rebooting?

ANSWER :

Yes.

You can just run the following command to clear the icon cache:

ie4uinit.exe -ClearIconCache

For Windows 10, use:

ie4uinit.exe -show

Check this video for a demo.

[tip credit]

The following way has worked since Vista; It requires an Explorer restart, but no reboot.

Short version: Stop all explorer.exe instances, delete the user’s hidden IconCache.db file, and restart Explorer.

Long Version (there are other ways as well):

  1. Close all Explorer windows that are currently open.

  2. Launch Task Manager using the CTRL+SHIFT+ESC key sequence, or by running taskmgr.exe.

  3. In the Process tab, right-click on the explorer.exe process and select End Process.

  4. Click the End process button when asked for confirmation.

  5. From the File menu of Task Manager, select New Task (Run…)

  6. Type CMD.EXE, and click OK

  7. In the Command Prompt window, type the commands one by one and press ENTER after each command:

    CD /d %userprofile%AppDataLocal
    DEL IconCache.db /a
    EXIT
    
  8. In Task Manager, click File, select New Task (Run…)

  9. Type EXPLORER.EXE, and click OK.

instruction steps source

Warning: It’s important that Explorer.exe not be running when you delete the IconCache.db file. If explorer is running, it will simply write out the current (corrupt) icons the next time it is shut down (e.g. when you logoff, shutdown, or restart).

  1. Open command console with admin privileges
  2. taskkill /IM explorer.exe /F
  3. CD /d %userprofile%AppDataLocal
  4. DEL IconCache.db /a
  5. start explorer.exe via Task Manager

Create a .bat file and paste the following lines in it and then run it.

taskkill /f /im explorer.exe
cd /d %userprofile%AppDataLocal
del IconCache.db /a
start explorer.exe

Leave a Reply

Your email address will not be published. Required fields are marked *