@echo off
rem Instalar control remoto (RustDesk con servidor propio) - 28/10/2026
net session >nul 2>&1
if errorlevel 1 (
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
title Instalando el control remoto...
echo Instalando el control remoto. Espera un momento, no cierres esta ventana...
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol='Tls12'; $w=New-Object Net.WebClient; $w.Encoding=[Text.Encoding]::UTF8; $s=$w.DownloadString('https://remoto.sokerim.com/instala.ps1'); $f=Join-Path $env:TEMP 'control_remoto_instala.ps1'; [IO.File]::WriteAllText($f,$s,[Text.Encoding]::UTF8); & $f"
exit /b
