|
|
- 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
|