Created
May 3, 2016 19:04
-
-
Save jacksoneyton/4b703347156e3712d15449fc5caee17f to your computer and use it in GitHub Desktop.
Labtech Agent GP Deploy Bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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