Skip to content

Instantly share code, notes, and snippets.

@jacksoneyton
Created May 3, 2016 19:04
Show Gist options
  • Save jacksoneyton/4b703347156e3712d15449fc5caee17f to your computer and use it in GitHub Desktop.
Save jacksoneyton/4b703347156e3712d15449fc5caee17f to your computer and use it in GitHub Desktop.
Labtech Agent GP Deploy Bat
@REM specify ID at time of execution: deploy.bat ### (### = the actual client ID number)
if %1%=="0" GOTO END
IF NOT EXIST C:\WINDOWS\LTSVC GOTO Install
GOTO END
:Install
SET ID=%1%
IF "%ID%"=="" SET /P ID="What is the Site ID: "
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://lt1.arrc.com/Labtech/Deployment.aspx?Probe=1&ID=%ID%', '%TEMP%\Agent_Install.exe')"
%TEMP%\Agent_Install.exe /s
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment