@echo off
title LunaSupport Remote Support Prep
echo LunaSupport Remote Support Prep
echo.
echo This temporarily disables the UAC Secure Desktop so elevation prompts
echo remain on the interactive desktop during a trusted remote-support session.
echo UAC itself remains enabled.
echo.
net session >nul 2>&1
if %errorlevel% neq 0 (
  echo Requesting Administrator privileges...
  powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f
echo.
echo Remote Support Prep applied.
echo IMPORTANT: Run LunaSupport_Remote_Support_Restore.cmd when finished.
pause
