Verifique o comando Shell Icons
value 29
:
REG Query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29"
Remover o atalho da área de trabalho.
RemoveDescArrow.cmd:
:: Clear shorcut
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /t REG_SZ /d "%windir%\system32\shell32.dll,50" /f
:: Clear Icon Cache DB XP/2003
ver | findstr "5.1 5.2" && del /F /A:- /Q "%USERPROFILE%\Local Settings\Application Data\IconCache.db"
:: Clear Icon Cache DB Vista/7/2008/2008 R2
ver | findstr "6.0 6.1" && del /F /A:- /Q "%USERPROFILE%\AppData\Local\IconCache.db"
:: logoff
shutdown /l
RestoreDescArrow.cmd:
:: Clear shorcut
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /t REG_SZ /d "%windir%\system32\shell32.dll,29" /f
:: Clear Icon Cache DB XP/2003
ver | findstr "5.1 5.2" && del /F /A:- /Q "%USERPROFILE%\Local Settings\Application Data\IconCache.db"
:: Clear Icon Cache DB Vista/7/2008/2008 R2
ver | findstr "6.0 6.1" del /F /A:- /Q "%USERPROFILE%\AppData\Local\IconCache.db"
:: logoff
shutdown /l
linha de comando, variante adicional:
REG Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v "29" /f