@echo off
title Soporte remoto - HR Soluciones Informaticas
color 0B
echo.
echo   ================================================
echo     SOPORTE REMOTO - HR Soluciones Informaticas
echo   ================================================
echo.
echo   Preparando la herramienta... espere unos segundos.
echo   (Se abrira sola cuando termine.)
echo.

powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop'; $s='hrsoft.duckdns.org'; $k='lTne1a71C6r3gu1Y1f13YQfGTs0lJn+n0Fr9IfwlDSU='; $f = Join-Path $env:TEMP ('rustdesk-host={0},key={1}.exe' -f $s,$k); try { Invoke-WebRequest 'https://github.com/rustdesk/rustdesk/releases/download/1.4.9/rustdesk-1.4.9-x86_64.exe' -OutFile $f -UseBasicParsing } catch { Write-Host 'No se pudo descargar. Revise su conexion a Internet.'; }; Start-Process $f"

echo.
echo   ------------------------------------------------
echo   Cuando se abra la ventana, diga a su tecnico el
echo   NUMERO (ID) y la CONTRASENA que aparecen.
echo   ------------------------------------------------
echo.
timeout /t 8 >nul
