Supervision agent on Windows Core Server

In this procedure we will see how to download and install the monitoring agent using PowerShell commands

Supervision agent in MSI format

Download

PowerShell allows you to download a file in several different ways. Below are the orders with:

Method #1

Invoke-WebRequest -Uri "https://dashboard.rg-supervision.com/download/RG-Setup.msi" -OutFile "C:\Windows\Temp\RG-Setup.msi"

Method #2

wget "https://dashboard.rg-supervision.com/download/RG-Setup.msi" -Outfile "C:\Windows\Temp\RG-Setup.msi"

Method #3

$client = New-Object System.Net.WebClient
$client.DownloadFile("https://dashboard.rg-supervision.com/download/RG-Setup.msi", "C:\Windows\Temp\RG-Setup.msi")

Installation

Once the download is complete, below the command to install to install the agent

"C:\Windows\Temp\RG-Setup.msi" --action register --login  --password  --node 

Supervision agent in EXE format

Download

Method #1

Invoke-WebRequest -Uri "https://dashboard.rg-supervision.com/download/rgsupv-win.zip" -OutFile "C:\Windows\Temp\rgsupv-win.zip"

Method #2

wget "https://dashboard.rg-supervision.com/download/rgsupv-win.zip" -Outfile "C:\Windows\Temp\rgsupv-win.zip"

Method #3

$client = New-Object System.Net.WebClient
$client.DownloadFile("https://dashboard.rg-supervision.com/download/rgsupv-win.zip", "C:\Windows\Temp\rgsupv-win.zip")

Extraction vers le dossier C:\Windows\Temp\rgsupv-win

Expand-Archive "C:\Windows\Temp\rgsupv-win.zip" -DestinationPath "C:\Windows\Temp\rgsupv-win"

Installation

Once the download is complete, below the commands to install to install the agent

"C:\Windows\Temp\rgsupv-win\Tools\vcredist_x86.exe"
"C:\Windows\Temp\rgsupv-win\RG-Setup.exe" --action register --login  --password  --node