Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 📚 GROUP SVCHOSTS SERVICES
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 📖 Reduces the number of SvcHost services by grouping them, thus freeing up RAM
- :: ─────────────────────────────────────────────────────────────────────────────
- :: ⚠️ Only use it if your PC has more than 3.5gb RAM
- :: ─────────────────────────────────────────────────────────────────────────────
- :: ©️ Copy & Paste it to your own .cmd/.bat file
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 📜 SCRIPT
- :: ─────────────────────────────────────────────────────────────────────────────
- :: The WMIC system component is required to obtain the exact amount of RAM
- DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
- for /f "tokens=2 delims==" %%i in ('wmic os get TotalVisibleMemorySize /value') do set /a mem=%%i + 1024000
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /t REG_DWORD /d %mem% /f
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 🔁 RESTORE DEFAULT VALUES
- :: ─────────────────────────────────────────────────────────────────────────────
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /t REG_DWORD /d 3670016 /f
- :: ─────────────────────────────────────────────────────────────────────────────
Advertisement
Add Comment
Please, Sign In to add comment