@echo off
title Firefly Remote Setup
net session >nul 2>&1
if %errorlevel% neq 0 (
  echo Requesting administrator rights, please click Yes...
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;(New-Object Net.WebClient).DownloadString('https://lsyhc.com/downloads/yhc-connect.ps1')|Invoke-Expression"
echo.
echo Done. You can close this window.
pause
