@echo off
title RustDesk Fernwartung - Einrichtung
:: self-elevate to administrator, then download + run the PowerShell setup
net session >nul 2>&1
if %errorlevel% neq 0 (
  echo Administratorrechte werden angefordert...
  powershell -NoProfile -Command "Start-Process -Verb RunAs -FilePath '%~f0'"
  exit /b
)
powershell -NoProfile -ExecutionPolicy Bypass -Command "$p=Join-Path $env:TEMP 'rd-setup.ps1'; Invoke-WebRequest 'https://support.lautz.it/download/setup.ps1' -OutFile $p; & $p"
