Why are icons missing for certain programs in Win7? [duplicate]

Try the following.

Open Notepad and paste the below code.

taskkill /F /IM explorer.exe
cd /d %UserProfile%\AppData\Local
attrib –h IconCache.db
del IconCache.db
start explorer

save the file as a .bat file on your desktop.

Lastly, double click on the .bat file that you saved on your desktop and all icons should be restored.

Source