@echo off title GridShare Uninstall rem GridShare - removes the node agent from this Windows PC. 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 remove its agent and auto-start entries. 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 - removing the agent from this PC echo ============================================================ echo. echo This removes the GridShare agent, its auto-start entries and the echo GridShare folder, and restores the power settings setup changed. echo Ubuntu (WSL2), Docker and your NVIDIA driver stay - other software echo may use them. Your account and pending earnings are not affected. echo. powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol='Tls12'; irm https://gridshare.in/dl/uninstall.ps1 | iex" echo. echo To also delete the whole Ubuntu environment (everything in it, not echo just GridShare), run: wsl --unregister Ubuntu-24.04 echo. pause