@echo off title GridShare Node Setup rem GridShare - Windows GPU node installer. Double-click to run; self-elevates via UAC. rem Already running as administrator? net session >nul 2>&1 if %errorlevel%==0 goto run rem Not elevated - relaunch this same file as administrator (one Windows prompt). echo. echo GridShare needs administrator permission to set up WSL2 and your GPU node. echo Click "Yes" on the Windows prompt that appears... powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" exit /b :run echo. echo ============================================================ echo GridShare - setting up your Windows GPU node echo ============================================================ echo. echo A setup window will guide you. Windows will restart ONCE to echo enable WSL2, then GridShare finishes on its own - no commands. echo. powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol='Tls12'; irm https://gridshare.in/dl/install.ps1 | iex" echo. echo Done. If the window closed during a restart, GridShare is echo finishing automatically in the background after you log in. echo. pause