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

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