@echo off
title PCSanctum RMM installer
rem PCSanctum RMM installer launcher. Holds no keys: it fetches a fresh installer from https://get.pcsanctum.com.
fltmc >nul 2>&1
if not errorlevel 1 goto admin
echo Asking Windows for admin rights - click Yes.
powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
exit /b
:admin
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol -bor 3072; irm 'https://get.pcsanctum.com/ps' | iex"
echo.
pause
