diff --git a/configure-glpi.ps1 b/configure-glpi.ps1 new file mode 100644 index 0000000..dbe32df --- /dev/null +++ b/configure-glpi.ps1 @@ -0,0 +1,11 @@ +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