Browse Source

Add GLPI install powershell script

master
akshay 6 months ago
parent
commit
54131d91d3
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      configure-glpi.ps1

+ 11
- 0
configure-glpi.ps1 View File

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

Loading…
Cancel
Save