You are not logged in.
Bonjour, je sais qu'il y a déjà des sujet sur ce forum à propos du déploiement de fusioninventory mais aucun ne dis la même chose je suis donc perdu. J'aimerai déployer fusioninventory mais c'est la première fois que je déploie un logiciel.
Je ne sais pas quel script utilisé et comment l'utilisé une fois que je l'aurai et une fois que j'aurai je script j'aimerai l'essayer sur un groupe de deux trois ordinateurs de test pour savoir si ça fonctionne mais je ne sais pas comment restreindre la GPO pour quelque PC
Je suis sous Windows server 2012, GLPI (9.1) et fusioninventory (2.3.19)
C'est vraiment urgent et détailler bien votre aide car je débute s'il vous plaît
merci de vos réponse !
Offline
Bonjour,
Tu peux trouver un script à cette adresse: http://fusioninventory.org/documentatio … stall.html
Tu peux faire sur ton AD une OU avec seulement quelques postes, puis tu créer ta gpo et l'applique sur cette OU que tu viens de créer.
Bonne journée
Last edited by techinfo29 (2017-05-24 10:13:50)
Offline
Bonjour, merci de votre réponse mais j'aurai besoin de quelques explications car je suis débutant.
Qu'est ce qu'une OU ?
Comment faire une OU ?
Et qu'est ce que je dois changer sur le script ?
Merci, bonne journée
Offline
Quelqu'un peut m'aider s'il vous plaît ?
Offline
Bonjour,
Là c'est une formation en Windows Server/Active Directory qu'il te faut. Ce serait très long à t'expliquer donc essaies de trouver des infos sur le net pour voir comment fonctionne l'AD.
Pour info, l'installation de FusionInventory se fait par script via GPO, c'est-à-dire que le srcipt installe l'appli au démarrage de l'ordinateur. Essaies de te documenter un peu plus sur les GPO.
Offline
bonjour je me suis renseigner sur Active directory mais actuellement pour pouvoir déployer fusioninventory il me manque deux information: -La première est que je ne sais pas se qu'il faut changer dans le script pour l'adapter à mon réseau
et la deuxième chose est qu'avant de déployer sur tous les ordinateurs de mon entreprise j'aimerai le déployer sur deux ou trois pc que j'ai à ma disposition pour faire des test et je ne sais comment attribuer ma GPO que pour c'est ordinateurs la
Merci bonne journée
Offline
help !
Offline
Quelqu'un pourrait me répondre s'il vous plaît c'est assez urgent !
Sur le site de fusioninventory (http://fusioninventory.org/documentatio … n/windows/) j'ai obtenu ce script :
Quelqu'un peut me dire ce que je dois changer dedans s'il vous plaît merci !
'
' ------------------------------------------------------------------------
' fusioninventory-agent-deployment.vbs
' Copyright (C) 2010-2013 by the FusionInventory Development Team.
'
' [url]http://www.fusioninventory.org/[/url] [url]http://forge.fusioninventory.org/[/url]
' ------------------------------------------------------------------------
'
' LICENSE
'
' This file is part of FusionInventory project.
'
' This file is free software; you can redistribute it and/or modify it
' under the terms of the GNU General Public License as published by the
' Free Software Foundation; either version 2 of the License, or (at your
' option) any later version.
'
'
' This file is distributed in the hope that it will be useful, but WITHOUT
' ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
' FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
' more details.
'
' You should have received a copy of the GNU General Public License
' along with this program; if not, write to the Free Software Foundation,
' Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA,
' or see <[url]http://www.gnu.org/licenses/[/url]>.
'
' ------------------------------------------------------------------------
'
' @package FusionInventory Agent
' @file .\contrib\windows\fusioninventory-agent-deployment.vbs
' @author(s) Benjamin Accary <meldrone@orange.fr>
' Christophe Pujol <chpujol@gmail.com>
' Marc Caissial <marc.caissial@zenitique.fr>
' Tomas Abad <tabadgp@gmail.com>
' @copyright Copyright (c) 2010-2013 FusionInventory Team
' @license GNU GPL version 2 or (at your option) any later version
' [url]http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html[/url]
' @link [url]http://www.fusioninventory.org/[/url]
' @link [url]http://forge.fusioninventory.org/projects/fusioninventory-agent[/url]
' @since 2012
'
' ------------------------------------------------------------------------
'
'
'
' Purpose:
' FusionInventory Agent Unatended Deployment.
'
'
Option Explicit
Dim Force, Verbose
Dim Setup, SetupArchitecture, SetupLocation, SetupOptions, SetupVersion
'
'
' USER SETTINGS
'
'
' SetupVersion
' Setup version with the pattern <major>.<minor>.<release>[-<package>]
'
SetupVersion = "2.3.18"
' SetupLocation
' Depending on your needs or your environment, you can use either a HTTP or
' CIFS/SMB.
'
' If you use HTTP, please, set to SetupLocation a URL:
'
' SetupLocation = "http://host[:port]/[absolut_path]" or
' SetupLocation = "https://host[:port]/[absolut_path]"
'
' If you use CIFS, please, set to SetupLocation a UNC path name:
'
' SetupLocation = "\\host\share\[path]"
'
' You also must be sure that you have removed the "Open File Security Warning"
' from programs accessed from that UNC.
'
SetupLocation = "[url]https://github.com/tabad/fusioninventory-agent-windows-installer/releases/download/[/url]" & SetupVersion
' SetupArchitecture
' The setup architecture can be 'x86', 'x64' or 'Auto'
'
' If you set SetupArchitecture = "Auto" be sure that both installers are in
' the same SetupLocation.
'
SetupArchitecture = "Auto"
' SetupOptions
' Consult the installer documentation to know its list of options.
'
' You should use simple quotes (') to set between quotation marks those values
' that require it; double quotes (") doesn't work with UNCs.
'
SetupOptions = "/acceptlicense /runnow /server='http://glpi.yourcompany.com/glpi/plugins/fusioninventory/' /S"
' Setup
' The installer file name. You should not have to modify this variable ever.
'
Setup = "fusioninventory-agent_windows-" & SetupArchitecture & "_" & SetupVersion & ".exe"
' Force
' Force the installation even whether Setup is previously installed.
'
Force = "No"
' Verbose
' Enable or disable the information messages.
'
' It's advisable to use Verbose = "Yes" with 'cscript //nologo ...'.
'
Verbose = "No"
'
'
' DO NOT EDIT BELOW
'
'
Function AdvanceTime(nMinutes)
Dim nMinimalMinutes, dtmTimeFuture
' As protection
nMinimalMinutes = 5
If nMinutes < nMinimalMinutes Then
nMinutes = nMinimalMinutes
End If
' Add nMinutes to the current time
dtmTimeFuture = DateAdd ("n", nMinutes, Time)
' Format the result value
' The command AT accepts 'HH:MM' values only
AdvanceTime = Hour(dtmTimeFuture) & ":" & Minute(dtmTimeFuture)
End Function
Function baseName (strng)
Dim regEx, ret
Set regEx = New RegExp
regEx.Global = true
regEx.IgnoreCase = True
regEx.Pattern = ".*[/\\]([^/\\]+)$"
baseName = regEx.Replace(strng,"$1")
End Function
Function GetSystemArchitecture()
Dim strSystemArchitecture
Err.Clear
' Get operative system architecture
On Error Resume Next
strSystemArchitecture = CreateObject("WScript.Shell").ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%")
If Err.Number = 0 Then
' Check the operative system architecture
Select Case strSystemArchitecture
Case "x86"
' The system architecture is 32-bit
GetSystemArchitecture = "x86"
Case "AMD64"
' The system architecture is 64-bit
GetSystemArchitecture = "x64"
Case Else
' The system architecture is not supported
GetSystemArchitecture = "NotSupported"
End Select
Else
' It has been not possible to get the system architecture
GetSystemArchitecture = "Unknown"
End If
End Function
Function isHttp(strng)
Dim regEx, matches
Set regEx = New RegExp
regEx.Global = true
regEx.IgnoreCase = True
regEx.Pattern = "^(http(s?)).*"
If regEx.Execute(strng).count > 0 Then
isHttp = True
Else
isHttp = False
End If
Exit Function
End Function
Function IsInstallationNeeded(strSetupVersion, strSetupArchitecture, strSystemArchitecture)
Dim strCurrentSetupVersion
' Compare the current version, whether it exists, with strSetupVersion
If strSystemArchitecture = "x86" Then
' The system architecture is 32-bit
' Check if the subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' exists
' This subkey is now deprecated
On error resume next
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\DisplayVersion")
If Err.Number = 0 Then
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' exists
If strCurrentSetupVersion <> strSetupVersion Then
ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion)
IsInstallationNeeded = True
End If
Exit Function
Else
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' doesn't exist
Err.Clear
' Check if the subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
On error resume next
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent\DisplayVersion")
If Err.Number = 0 Then
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
If strCurrentSetupVersion <> strSetupVersion Then
ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion)
IsInstallationNeeded = True
End If
Exit Function
Else
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' doesn't exist
Err.Clear
ShowMessage("Installation needed: " & strSetupVersion)
IsInstallationNeeded = True
End If
End If
Else
' The system architecture is 64-bit
' Check if the subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' exists
' This subkey is now deprecated
On error resume next
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\DisplayVersion")
If Err.Number = 0 Then
' The subkey 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' exists
If strCurrentSetupVersion <> strSetupVersion Then
ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion)
IsInstallationNeeded = True
End If
Exit Function
Else
' The subkey 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent' doesn't exist
Err.Clear
' Check if the subkey 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
On error resume next
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent\DisplayVersion")
If Err.Number = 0 Then
' The subkey 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
If strCurrentSetupVersion <> strSetupVersion Then
ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion)
IsInstallationNeeded = True
End If
Exit Function
Else
' The subkey 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' doesn't exist
Err.Clear
' Check if the subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
On error resume next
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent\DisplayVersion")
If Err.Number = 0 Then
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' exists
If strCurrentSetupVersion <> strSetupVersion Then
ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion)
IsInstallationNeeded = True
End If
Exit Function
Else
' The subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent' doesn't exist
Err.Clear
ShowMessage("Installation needed: " & strSetupVersion)
IsInstallationNeeded = True
End If
End If
End If
End If
End Function
Function IsSelectedForce()
If LCase(Force) <> "no" Then
ShowMessage("Installation forced: " & SetupVersion)
IsSelectedForce = True
Else
IsSelectedForce = False
End If
End Function
' [url]http://www.ericphelps.com/scripting/samples/wget/index.html[/url]
Function SaveWebBinary(strSetupLocation, strSetup)
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
Const ForWriting = 2
Dim web, varByteArray, strData, strBuffer, lngCounter, ado, strUrl
strUrl = strSetupLocation & "/" & strSetup
'On Error Resume Next
'Download the file with any available object
Err.Clear
Set web = Nothing
Set web = CreateObject("WinHttp.WinHttpRequest.5.1")
If web Is Nothing Then Set web = CreateObject("WinHttp.WinHttpRequest")
If web Is Nothing Then Set web = CreateObject("MSXML2.ServerXMLHTTP")
If web Is Nothing Then Set web = CreateObject("Microsoft.XMLHTTP")
web.Open "GET", strURL, False
web.Send
If Err.Number <> 0 Then
SaveWebBinary = False
Set web = Nothing
Exit Function
End If
If web.Status <> "200" Then
SaveWebBinary = False
Set web = Nothing
Exit Function
End If
varByteArray = web.ResponseBody
Set web = Nothing
'Now save the file with any available method
On Error Resume Next
Set ado = Nothing
Set ado = CreateObject("ADODB.Stream")
If ado Is Nothing Then
Set fs = CreateObject("Scripting.FileSystemObject")
Set ts = fs.OpenTextFile(baseName(strUrl), ForWriting, True)
strData = ""
strBuffer = ""
For lngCounter = 0 to UBound(varByteArray)
ts.Write Chr(255 And Ascb(Midb(varByteArray,lngCounter + 1, 1)))
Next
ts.Close
Else
ado.Type = adTypeBinary
ado.Open
ado.Write varByteArray
ado.SaveToFile CreateObject("WScript.Shell").ExpandEnvironmentStrings("%TEMP%") & "\" & strSetup, adSaveCreateOverWrite
ado.Close
End If
SaveWebBinary = True
End Function
Function ShowMessage(strMessage)
If LCase(Verbose) <> "no" Then
WScript.Echo strMessage
End If
End Function
'
'
' MAIN
'
'
Dim nMinutesToAdvance, strCmd, strSystemArchitecture, strTempDir, WshShell
Set WshShell = WScript.CreateObject("WScript.shell")
nMinutesToAdvance = 5
' Get system architecture
strSystemArchitecture = GetSystemArchitecture()
If (strSystemArchitecture <> "x86") And (strSystemArchitecture <> "x64") Then
ShowMessage("The system architecture is unknown or not supported.")
ShowMessage("Deployment aborted!")
WScript.Quit 1
Else
ShowMessage("System architecture detected: " & strSystemArchitecture)
End If
' Check and auto detect SetupArchitecture
Select Case LCase(SetupArchitecture)
Case "x86"
' The setup architecture is 32-bit
SetupArchitecture = "x86"
Setup = Replace(Setup, "x86", SetupArchitecture, 1, 1, vbTextCompare)
ShowMessage("Setup architecture: " & SetupArchitecture)
Case "x64"
' The setup architecture is 64-bit
SetupArchitecture = "x64"
Setup = Replace(Setup, "x64", SetupArchitecture, 1, 1, vbTextCompare)
ShowMessage("Setup architecture: " & SetupArchitecture)
Case "auto"
' Auto detection of SetupArchitecture
SetupArchitecture = strSystemArchitecture
Setup = Replace(Setup, "Auto", SetupArchitecture, 1, 1, vbTextCompare)
ShowMessage("Setup architecture detected: " & SetupArchitecture)
Case Else
' The setup architecture is not supported
ShowMessage("The setup architecture '" & SetupArchitecture & "' is not supported.")
WScript.Quit 2
End Select
' Check the relation between strSystemArchitecture and SetupArchitecture
If (strSystemArchitecture = "x86") And (SetupArchitecture = "x64") Then
' It isn't possible to execute a 64-bit setup on a 32-bit operative system
ShowMessage("It isn't possible to execute a 64-bit setup on a 32-bit operative system.")
ShowMessage("Deployment aborted!")
WScript.Quit 3
End If
If IsSelectedForce() Or IsInstallationNeeded(SetupVersion, SetupArchitecture, strSystemArchitecture) Then
If isHttp(SetupLocation) Then
ShowMessage("Downloading: " & SetupLocation & "/" & Setup)
If SaveWebBinary(SetupLocation, Setup) Then
strCmd = WshShell.ExpandEnvironmentStrings("%ComSpec%")
strTempDir = WshShell.ExpandEnvironmentStrings("%TEMP%")
ShowMessage("Running: """ & strTempDir & "\" & Setup & """ " & SetupOptions)
WshShell.Run """" & strTempDir & "\" & Setup & """ " & SetupOptions, 0, True
ShowMessage("Scheduling: DEL /Q /F """ & strTempDir & "\" & Setup & """")
WshShell.Run "AT.EXE " & AdvanceTime(nMinutesToAdvance) & " " & strCmd & " /C ""DEL /Q /F """"" & strTempDir & "\" & Setup & """""", 0, True
ShowMessage("Deployment done!")
Else
ShowMessage("Error downloading '" & SetupLocation & "\" & Setup & "'!")
End If
Else
ShowMessage("Running: """ & SetupLocation & "\" & Setup & """ " & SetupOptions)
WshShell.Run "CMD.EXE /C """ & SetupLocation & "\" & Setup & """ " & SetupOptions, 0, True
ShowMessage("Deployment done!")
End If
Else
ShowMessage("It isn't needed the installation of '" & Setup & "'.")
End If
Offline
Bonjour,
Je ne sais pas si tu as eu toutes les réponses à ton sujet. Mais essaie de regarder ce topic, a mon avis il peut t'aider un peu ...
http://forum.fusioninventory.org/viewtopic.php?id=5183
Offline
bha fusioninventory a un plugin a installer coté serveur des agents à installer sur chaque client du réseau. Tu dois juste indiquer l'adresse IP du serveur à tes client http://serveur_IP_address/glpi/fusioninventory/
chaque client embarque un mini serveur web disponible sur: htpp:127.0.0.1:62354/ en allant dessus tu peux forcer
l'inventaire.
As tu bien installé GLPI si oui tout ce que tu as à faire c'est d'installer le plugin de fusioninventory dans le dossier plugin de la GLPI
puis l'installer comme indiqué dans la documentation de la GLPI
Offline
Bonjour oui j'ai bien installer GLPi et le plugin fusioninventory sur la partie serveur et j'ai même tester d'installer manuellement un agent fusioninventory sur un des poste et il envoie bien les informations à GLPI mais je n'arrive toujours pas à déployer fusioninventory sur les postes à l'aide d'une GPO quelqu'un peut m'aider ? J'aimerai savoir deux chose:
-Quelqu'un pourrai me donner un script et me dire se que je dois changer dessus pour l'adapter à mon réseau ?
- Et quelqu'un peut me dire comment limiter une GPO à quelque postes et non pas à tous les postes du réseaux pour faire des testes ?
Offline
Pour limiter le déploiement sur quelques postes, tu vas dans ton Active Directory puis tu crées une OU (test_FI par exemple) et tu déplaces les PC sur lesquels tu veux faire tes tests.
Ensuite, tu crées ta GPO et tu la lies à ton OU de test (https://www.youtube.com/watch?v=y1xeh1vYGJk)
Pour le script, le lien que t'as passé techinfo29 (http://fusioninventory.org/documentatio … stall.html) te dit exactement ce qu'il faut éditer dans la partie 1.1.
Offline
ok je viens de crée la OU mais si je déplace les ordinateur que je veux dans la OU ça ne risque rien ? Car ça me met : "Le déplacement d'objets dans les services de domaine Active Directory peut empêcher le bon fonctionnement de votre système existant. Par exemple, le déplacement d'une unité d'organisation peut se répercuter sur le mode d'application des stratégies de groupe aux comptes qui y résident."
Je voulais donc savoir si je le déplace dans ma OU de test et qu'une fois le test fini je le redéplace dans sa OU de base ça va fonctionner ou pas ?
Offline
Crées l'OU de test dans son OU d'origine.
Par exemple, si ton PC se trouve de base dans une OU "A" tu peux créer ton OU de test "B" dans l'OU "A". Cela aura pour effet de ne pas risquer qu'une GPO de base ne s'applique pas. Tu pourras ensuite remettre ton PC dans son OU d'origine sans souci.
Offline
D'accord mais je comprend pas comment relier mon groupe d'ordi test à ma GPO ou se trouve mon script car dans al vidéo que vous m'avez passez c'est sur un vieux windows server alors que je suis sur celui de 2012 je suis donc perdu car ça ne se présente pas de la même façon vous pouvez m'aidez ?
Offline
J'ai crée une GPO dans le dossier "Objet de stratégie de groupe" ensuite je l'ai modifier pour mettre le script au démarrage, j'ai donc mis le script ainsi que les exe de FusionInventory dans le dossier crée par ma GPO qui se trouve dans le dossier SYSVOL, je voudrai savoir si j'ai bien crée ma GPO au bon endroit et que j'ai bien mis le script et les exe au bon endroit si oui comment faire pour relier ma GPO à mon groupe d'ordinateur de test merci
Offline
Offline
sauf que moi dans la fenêtre gestion de stratégie de groupe je ne trouve pas mes ordinateurs, mes ordinateurs se trouve dans la fenêtre "Utilisateur et ordinateurs Active Directory"
Offline
Bonjour,
Ceux-ci est normal, dans "gestion de stratégie" tu ne gère que les stratégie et dans "Utilisateurs et Ordinateurs Active Directory" tu gère les "groupes, ordinateurs, utilisateurs etc..."
Normalement tu doit retrouver les mêmes OU entre les deux. Dans "gestion de stratégie" tu applique la stratégie à une OU, c'est stratégie s'appliquera à tout les objet que tu auras mis dans l'OU via "Utilisateurs et Ordinateurs Active Directory", attention, c'est suivant aussi les filtres que tu auras mis à la stratégie.
Offline
Le problème est que je suis stagiaire et la OU ou se trouve tous les ordinateur ce n'est pas moi qui la crée et elle n'apparaît pas dans la gestion de stratégie je ne peux donc pas la liée avec ma GPO. Je dois faire comment du coup ?
Offline
Tu est sur que ta "Gestion de Stratégie" est connecté au mêmes domaine qu'où se trouve les PC ? A mon avis, il faut que tu voie ça avec ton responsable ou l'administrateur, si c'est pas lui. Car sans droit tu ne pourra pas trop avancer, après c'est normal qu'il ne te donne pas trop de droit à ce niveau.
Offline
Le problème est que je suis dans une entreprise qui n'a pas de service informatique et donc il n'y a pas de personnes avec des compétence pour m'aider. En ce qui concerne la Gestion de stratégie elle est bien connecté au même domaine mais je ne voie pas tous les dossier d'active directory par contre j'en ai crée un pour faire un test et il apparaît bien dans les deux.
Je vais refaire un test de A-Z pour voir si je me suis pas tromper un moment mais je crois que le problème viens de mon dossier ou se trouver mon script et mon exe je les ai mis dans le dossier crée par ma GPO (mon_serveur>sysvol>policies>2BFE0138-.....>Machine>Scripts>Startup)
Deja est ce que j'ai mis ça au bon endroit ?
Offline
Et en ce qui concerne le script je ne c'est toujours pas se qu'il faut mettre à setupLocation:
SetupVersion = "2.3.19"
' SetupLocation
' Depending on your needs or your environment, you can use either a HTTP or
' CIFS/SMB.
'
' If you use HTTP, please, set to SetupLocation a URL:
'
' SetupLocation = "http://host[:port]/[absolut_path]" or
' SetupLocation = "https://host[:port]/[absolut_path]"
'
' If you use CIFS, please, set to SetupLocation a UNC path name:
'
' SetupLocation = "\\host\share\[path]"
'
' You also must be sure that you have removed the "Open File Security Warning"
' from programs accessed from that UNC.
'
SetupLocation = "\\192.168.70.2\" & SetupVersion
' SetupArchitecture
' The setup architecture can be 'x86', 'x64' or 'Auto'
'
' If you set SetupArchitecture = "Auto" be sure that both installers are in
' the same SetupLocation.
'
SetupArchitecture = "Auto"
' SetupOptions
' Consult the installer documentation to know its list of options.
'
' You should use simple quotes (') to set between quotation marks those values
' that require it; double quotes (") doesn't work with UNCs.
'
SetupOptions = "/acceptlicense /runnow /server='192.168.70.2/glpi/plugins/fusioninventory/' /S"
Et est ce que les autre ligne sont bonnes ?
Offline
Dans tes deux dernier message je voie que tu n'est ni sur de ta GPO et ni sur de ton script. En premier lieu, test bien ton script en le lançant manuellement sur ton PC de test.
Une fois que tu est sur et certain que ton script fonctionne, là tu t'attaque à l'intégré à ta stratégie.
Pour le chemin "SetupLocation", c'est le chemin où ce trouve tes deux .exe d'installation, "fusioninventory-agent_windows-x64_2.3.19.exe" et "fusioninventory-agent_windows-x86_2.3.19.exe". Se n'est pas forcément ton serveur GLPI.
Bon courage
Offline
Ok je vais essayer de le lancer en local sur mon pc de test mais je voulais savoir si j'ai mis mes deux exe dans à la racine de mon serveur dans un dossier ça donne ça :
SetupLocation = "\\192.168.70.2\deploy\Fusioninventory" & SetupVersion
Offline