If you are in an Active Directory environment, we invite you to review the documentation Deployment via GPO.

Prerequisites

  • The user who will execute the script must be a local administrator of his machine
  • The user of the dashboard passed as script parameter must be at least Technical Manager
  • Download the supervision agent in his ZIP folder

 

Process

Preparing your dashboard

  • Create a folder dedicated to the deployment in your tree: Right click then "new node"
  • On your server, create a shared folder. In the sharing permissions, assign the "Full Control" right to "Everyone"
  • Put there the files "vcredist_x86.exe" and "RG-Setup.exe"

Write the deployment script

@echo off
REM *******************************************************************************
REM ********************* RG SUPERVISION AGENT DEPLOYMENT ********************
REM *******************************************************************************

REM ********** Test the presence of the service. Quit if already exists **************
sc query RG-Supervision > NUL
if not errorlevel 1060 exit

REM ******* Determine the installation path regarding to the architecture ********
set InstallPath=%ProgramFiles%
if exist "%ProgramFiles(x86)%" set InstallPath=%ProgramFiles(x86)%

REM ********************* Copy binaries from a source server *************
REM ******* Ces 2 binaires sont dans le fichier zip téléchargeable de l'agent *****
xcopy /I /Y "\\SERVEURSOURCE\PARTAGE\RG-Setup.exe" "%temp%"
xcopy /I /Y "\\SERVEURSOURCE\PARTAGE\vcredist_x86.exe" "%temp%"

REM ********************** C++ redistribuable package installation ***************
"%temp%\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"

REM ********************** Agent setup **********************************
"%temp%\RG-Setup.exe" --action register --login  --password  --node #ID_NOEUD

REM ********************** Cleaning ************************************************
Del "%temp%\vcredist_x86.exe" /F /Q
Del "%temp%\RG-Setup.exe" /F /Q

:QUIT
exit

 

Adapt the information below to your environment:

  • SERVEURSOURCE
  • SHARING
  • mylogin
  • MY PASSWORD
  • NODE_ID (the latter is visible in your browser, in the URL once the selected node)

    N.B. Instead of displaying your password in clear, we invite you to contact our technical support to have an installation token (the latter will replace your password)