🖥️ Batch (CMD)

Increase Icon Cache Size (Batch)

Raises the icon cache limit, useful on machines with huge numbers of shortcuts. Applies the tweak via reg.exe.

By WindowsScripting.com · 553 B
SetIncreaseIconCacheSize.bat
@echo off
:: ============================================================
:: SetIncreaseIconCacheSize.bat
::
:: Increase Icon Cache Size.
:: Raises the icon cache limit, useful on machines with huge numbers of shortcuts.
:: ============================================================

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Explorer" /v "Max Cached Icons" /t REG_SZ /d "4096" /f

if %ERRORLEVEL% EQU 0 (
    echo Increase Icon Cache Size applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause