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 2015-12-15 18:27:19

krampouz
Member
Registered: 2010-05-18
Posts: 31

batch de connexion

Bonjour,

en compilant les infos ici et la, voici le script qui me sert a remonter les données d'inventaire des ordis M$:
vu qu'il reste encore des ordis en 32 bits, je fais le test...

@echo off
set ip_address="XXX.XXX.XXX.XXX"
echo Detecting OS processor type

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT
echo 32-bit OS
IF EXIST c:\fusioninventory32.txt GOTO fin
ECHO FusionInventory32 > c:\fusioninventory32.txt
start /min \\%ip_address%\netlogon\fusioninventory\fi32.exe /acceptlicense /runnow /server='https://IPDUSERVEUROUAIBE/glpi/plugins/fusioninventory/' /S /no-ssl-check /add-firewall-exception /execmode=service /installtype=from-scratch
goto FIN


:64BIT
echo 64-bit OS
IF EXIST c:\fusioninventory64.txt GOTO fin
ECHO FusionInventory64 > c:\fusioninventory64.txt
start /min \\%ip_address%\netlogon\fusioninventory\fi64.exe /acceptlicense /runnow /server='https://IPDUSERVEUROUAIBE/glpi/plugins/fusioninventory/' /S /no-ssl-check /add-firewall-exception /execmode=service /installtype=from-scratch

:fin

Glpi 9.4.3
Debian Serveur Jessie
Camping car Bretagne

Offline

Board footer

Powered by FluxBB