Promtail windows configuration script, binary and config file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

11 lines
519 B

New-Item -Path "c:\\" -Name "glpi" -ItemType "directory"
$glpi_url = "https://sovran.dev/akshay/promtail-windows/raw/branch/master/GLPI-Agent-1.4-x64.msi"
$glpi_dir = "c:\glpi\GLPI-Agent-1.4-x64.msi"
Invoke-WebRequest -Uri $glpi_url -OutFile $glpi_dir
msiexec /i $glpi_dir /quiet SERVER="http://10.250.2.20"
$config_url = "https://sovran.dev/akshay/promtail-windows/raw/branch/master/aeques-glpi.cfg"
$config_dir = "c:\Program Files\GLPI-Agent\etc\agent.cfg"
Invoke-WebRequest -Uri $config_url -OutFile $config_dir