đź“„ JScript (WSH)
Increase Icon Cache Size (JScript)
Raises the icon cache limit, useful on machines with huge numbers of shortcuts. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).
SetIncreaseIconCacheSize.js
// ============================================================
// SetIncreaseIconCacheSize.js
//
// Increase Icon Cache Size.
// Raises the icon cache limit, useful on machines with huge numbers of shortcuts.
//
// Usage: cscript SetIncreaseIconCacheSize.js
// ============================================================
var objShell = WScript.CreateObject("WScript.Shell");
try {
objShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\Explorer\\Max Cached Icons", "4096", "REG_SZ");
WScript.Echo("Increase Icon Cache Size applied.");
} catch (e) {
WScript.Echo("Failed to apply tweak: " + e.description);
}