@echo off
title Instalador RustDesk - Oticas Chapada
REM Baixa e roda https://rd.oticaschapada.com.br/instalar.ps1 como administrador.

net session >nul 2>&1
if %errorlevel% NEQ 0 (
    powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
    exit /b
)

powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol='Tls12'; irm https://rd.oticaschapada.com.br/instalar.ps1 | iex"
