@echo off setlocal EnableExtensions EnableDelayedExpansion title Performancify System Optimizer color 0F cls set "LOG=%~dp0Performancify_System_Log.txt" for /f %%T in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set "STAMP=%%T" set "BACKUP=%~dp0Performancify_System_Backup_%STAMP%.reg" echo. echo ================================================== echo Performancify System Optimizer echo ================================================== echo. echo White UI Mode Enabled echo Applying safe privacy and performance tweaks... echo. net session >nul 2>&1 if not "%errorlevel%"=="0" ( echo [ERROR] Run this file as Administrator. echo. pause exit /b ) echo [+] Creating registry backup... reg export "HKCU" "%~dp0Performancify_HKCU_Backup_%STAMP%.reg" /y >> "%LOG%" 2>&1 reg export "HKLM\SOFTWARE" "%~dp0Performancify_HKLM_SOFTWARE_Backup_%STAMP%.reg" /y >> "%LOG%" 2>&1 reg export "HKLM\SYSTEM" "%~dp0Performancify_HKLM_SYSTEM_Backup_%STAMP%.reg" /y >> "%LOG%" 2>&1 echo [OK] Backup files saved in this folder. echo. echo [+] Creating restore point... powershell -NoProfile -ExecutionPolicy Bypass -Command "try { Checkpoint-Computer -Description 'Performancify System Optimizer' -RestorePointType 'MODIFY_SETTINGS' } catch {}" >> "%LOG%" 2>&1 echo [OK] Restore point attempted. echo. timeout /t 2 >nul cls echo ================================================== echo Performancify Privacy Tweaks echo ================================================== echo. call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" "Enabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy" "TailoredExperiencesWithDiagnosticDataEnabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" "ShowSyncProviderNotifications" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SubscribedContent-338388Enabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SubscribedContent-338389Enabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SubscribedContent-353698Enabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SilentInstalledAppsEnabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SystemPaneSuggestionsEnabled" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" "GlobalUserDisabled" "1" call :SetDWORD "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" "DisableWindowsConsumerFeatures" "1" call :SetDWORD "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" "AllowTelemetry" "1" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" "Disabled" "1" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" "DontSendAdditionalData" "1" echo. echo [OK] Privacy tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify Input Tweaks echo ================================================== echo. call :SetSZ "HKCU\Control Panel\Keyboard" "KeyboardDelay" "0" call :SetSZ "HKCU\Control Panel\Keyboard" "KeyboardSpeed" "31" call :SetSZ "HKCU\Control Panel\Mouse" "MouseSpeed" "0" call :SetSZ "HKCU\Control Panel\Mouse" "MouseThreshold1" "0" call :SetSZ "HKCU\Control Panel\Mouse" "MouseThreshold2" "0" call :SetSZ "HKCU\Control Panel\Mouse" "MouseSensitivity" "10" call :SetSZ "HKCU\Control Panel\Accessibility\StickyKeys" "Flags" "506" call :SetSZ "HKCU\Control Panel\Accessibility\Keyboard Response" "Flags" "122" call :SetSZ "HKCU\Control Panel\Accessibility\ToggleKeys" "Flags" "58" echo. echo [OK] Input tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify Gaming Tweaks echo ================================================== echo. call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" "AppCaptureEnabled" "0" call :SetDWORD "HKCU\System\GameConfigStore" "GameDVR_Enabled" "0" call :SetDWORD "HKCU\System\GameConfigStore" "GameDVR_FSEBehaviorMode" "2" call :SetDWORD "HKCU\System\GameConfigStore" "GameDVR_HonorUserFSEBehaviorMode" "1" call :SetDWORD "HKCU\System\GameConfigStore" "GameDVR_DXGIHonorFSEWindowsCompatible" "1" call :SetDWORD "HKCU\Software\Microsoft\GameBar" "AllowAutoGameMode" "1" call :SetDWORD "HKCU\Software\Microsoft\GameBar" "AutoGameModeEnabled" "1" call :SetDWORD "HKCU\Software\Microsoft\GameBar" "ShowStartupPanel" "0" call :SetDWORD "HKCU\Software\Microsoft\GameBar" "UseNexusForGameBarEnabled" "0" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "SystemResponsiveness" "10" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "NetworkThrottlingIndex" "4294967295" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "GPU Priority" "8" call :SetDWORD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Priority" "6" call :SetSZ "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Scheduling Category" "High" call :SetSZ "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "SFIO Priority" "High" echo. echo [OK] Gaming tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify UI Tweaks echo ================================================== echo. call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" "EnableTransparency" "0" call :SetDWORD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" "TaskbarAnimations" "0" call :SetDWORD "HKCU\Control Panel\Desktop" "MenuShowDelay" "0" call :SetSZ "HKCU\Control Panel\Desktop" "AutoEndTasks" "1" call :SetSZ "HKCU\Control Panel\Desktop" "HungAppTimeout" "2000" call :SetSZ "HKCU\Control Panel\Desktop" "WaitToKillAppTimeout" "5000" call :SetSZ "HKCU\Control Panel\Desktop" "LowLevelHooksTimeout" "1000" echo. echo [OK] UI tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify Power Tweaks echo ================================================== echo. echo [+] Applying current power plan tweaks... powercfg /setacvalueindex SCHEME_CURRENT SUB_PCIEXPRESS ASPM 0 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_USB USBSELECTIVE SUSPEND 0 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_DISK DISKIDLE 0 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP STANDBYIDLE 0 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP HIBERNATEIDLE 0 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMIN 5 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMAX 100 >> "%LOG%" 2>&1 powercfg /setactive SCHEME_CURRENT >> "%LOG%" 2>&1 echo [OK] Power tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify Service Tweaks echo ================================================== echo. echo This does NOT disable Windows Update or Defender. echo. call :ServiceDisable "DiagTrack" call :ServiceDisable "dmwappushservice" call :ServiceDisable "MapsBroker" call :ServiceDisable "RetailDemo" call :ServiceDisable "Fax" call :ServiceManual "XblAuthManager" call :ServiceManual "XblGameSave" call :ServiceManual "XboxGipSvc" call :ServiceManual "XboxNetApiSvc" call :ServiceManual "WSearch" call :ServiceManual "SysMain" echo. echo [OK] Service tweaks applied. timeout /t 2 >nul cls echo ================================================== echo Performancify Cleanup echo ================================================== echo. echo [+] Cleaning user temp files... del /s /f /q "%TEMP%\*" >> "%LOG%" 2>&1 for /d %%D in ("%TEMP%\*") do rd /s /q "%%D" >> "%LOG%" 2>&1 echo [+] Cleaning Windows temp files... del /s /f /q "C:\Windows\Temp\*" >> "%LOG%" 2>&1 for /d %%D in ("C:\Windows\Temp\*") do rd /s /q "%%D" >> "%LOG%" 2>&1 echo [+] Flushing DNS cache... ipconfig /flushdns >> "%LOG%" 2>&1 echo [+] Refreshing Explorer... taskkill /f /im explorer.exe >> "%LOG%" 2>&1 start explorer.exe echo. echo [OK] Cleanup finished. timeout /t 2 >nul cls echo ================================================== echo Performancify Optimization Finished echo ================================================== echo. echo All tweaks have been applied. echo. echo IMPORTANT: echo Restart your PC for everything to fully apply. echo. echo Log saved here: echo %LOG% echo. echo Backup files saved in this folder: echo %~dp0 echo. pause exit /b :SetDWORD reg add "%~1" /v "%~2" /t REG_DWORD /d "%~3" /f >> "%LOG%" 2>&1 if "%errorlevel%"=="0" ( echo [OK] %~2 = %~3 ) else ( echo [SKIP] %~2 ) exit /b :SetSZ reg add "%~1" /v "%~2" /t REG_SZ /d "%~3" /f >> "%LOG%" 2>&1 if "%errorlevel%"=="0" ( echo [OK] %~2 = %~3 ) else ( echo [SKIP] %~2 ) exit /b :ServiceDisable sc query "%~1" >nul 2>&1 if "%errorlevel%"=="0" ( sc stop "%~1" >> "%LOG%" 2>&1 sc config "%~1" start= disabled >> "%LOG%" 2>&1 echo [OK] Disabled service: %~1 ) else ( echo [SKIP] Service not found: %~1 ) exit /b :ServiceManual sc query "%~1" >nul 2>&1 if "%errorlevel%"=="0" ( sc config "%~1" start= demand >> "%LOG%" 2>&1 echo [OK] Manual service: %~1 ) else ( echo [SKIP] Service not found: %~1 ) exit /b