@echo off
setlocal

rem Run from an elevated command prompt after creating start-agent.local.cmd.
rem Replace C:\Cpt\ChangeT50Agent with the real installation directory.
schtasks /Create /F /TN "CPT Change T5.0 Agent" /SC ONSTART /RU SYSTEM /RL HIGHEST /TR "C:\Cpt\ChangeT50Agent\start-agent.local.cmd"

echo Startup task installed. Verify it with:
echo schtasks /Query /TN "CPT Change T5.0 Agent" /V /FO LIST
