@echo off
rem KLBX Data Center - Geraet neu ausgeben. Startet sich als Administrator und laedt das Programm.
net session >nul 2>&1
if errorlevel 1 (
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://geraet.klbx.cloud/api/v1/endgeraete/autopilot/geraet.ps1').Content))"
