You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-10-06 14:58:42

aba-hit
Member
Registered: 2023-10-06
Posts: 1

GLPI Automated Installation Issue

Hello,

I have created a batch script, which should automatically install GLPI-Agent 1.5 x64, launch GLPI Agent Monitor x64 and force Inventory on the device it is launched on.

Here is the batch script i made:

@echo off

echo Checking for an existing installation of GLPI Agent
timeout /t 5 /nobreak

IF EXIST "C:\Program Files\GLPI-Agent" goto _End

msiexec.exe /i GLPI-Agent-1.5-x64.msi /quiet TAG="TAG" SERVER="SERVER" RUNNOW=1

start GLPI-AgentMonitor-x64.exe

echo GLPI Agent Monitor is starting...

timeout /t 20 /nobreak

cd /d C:\Program Files\GLPI-Agent

call glpi-inventory.bat

exit glpi-inventory.bat

_End

exit

Ive tested it on multiple Notebooks and it worked. Today i tested it on a server and i got an error message which stated: "Windows cannot find "GLPI-AgentMonitor-x64.exe". Make sure you typed the name correctly, and then try again. " The batchfile, GLPI-Agent-1.5-x64.msi and GLPI-AgentMonitor-x64.exe are all in the same file when executing the batch file.

I did some searching and added the following to the batch:

msiexec.exe /i GLPI-Agent-1.5-x64.msi /quiet ADD_FIREWALL_EXCEPTION=1 RUNNOW=1 TAG="TAG" SERVER="server" NO_SSL_CHECK=1 ADD_FIREWALL_EXCEPTION=1 DEBUG=1 RUNNOW=1

But that did not help.

Does anyone have an explanation or advice to fix this issue?

Offline

Board footer

Powered by FluxBB