Tuneup.bat Apr 2026
:: Admin check net session >nul 2>&1 if %errorLevel% neq 0 ( echo [ERROR] This script requires Administrator privileges. echo Right-click tuneup.bat and select "Run as administrator". pause exit /b 1 )
call :log "[11/12] Disabling unnecessary startup items..." reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /t REG_SZ /d "" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "Skype" /t REG_SZ /d "" /f >nul 2>&1 call :log " Startup tweaks applied." tuneup.bat
:: ============================================ :: PHASE 1: DISK CLEANUP :: ============================================ call :log "Phase 1: Disk Cleanup Operations" call :log "----------------------------------" :: Admin check net session >nul 2>&1 if
:: ============================================ :: PHASE 3: SYSTEM HEALTH :: ============================================ call :log "Phase 3: System Health Checks" call :log "------------------------------" :: Admin check net session >
call :log "[4/12] Cleaning Windows Update cache..." net stop wuauserv >nul 2>&1 del /f /s /q "%windir%\SoftwareDistribution\Download\*" >nul 2>&1 net start wuauserv >nul 2>&1 call :log " Update cache cleaned."