@echo off :: ============================================================================== :: OPTIMIZE.ARASHYT.CA - Windows Setup, Debloat & Optimization Hub Launcher :: Website: https://optimize.arashyt.ca :: ============================================================================== title OPTIMIZE.ARASHYT.CA - Windows Optimization Hub color 0b :: Check for Administrator Elevation net session >nul 2>&1 if %errorLevel% neq 0 ( echo. echo ====================================================================== echo [!] Administrator privileges required. Elevating permissions... echo ====================================================================== powershell -Command "Start-Process cmd -ArgumentList '/c \"\"%~dpnx0\"\"' -Verb RunAs" exit /b ) cd /d "%~dp0" :: Check if local optimize.ps1 exists, else download latest from optimize.arashyt.ca if exist "%~dp0optimize.ps1" ( powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0optimize.ps1" ) else ( echo ====================================================================== echo [*] Fetching latest optimize.ps1 engine from optimize.arashyt.ca... echo ====================================================================== powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13; irm https://optimize.arashyt.ca/run | iex" ) pause