Voila comment se pose mon problème, je gère un parc informatique et j'ai installé OCS Inventory, mais voulant passé sous FusionInventory je me confronte à un problème.
Il faut que j'active un proxy seulement sur certaine machine, reconnaissables par IP ou leur Nom.
Ayant déja cherché en vain je me remet à vous!
Pour l'instant mon code ce comprte de ceci:
► Afficher le texte
Merci d'avoir pris le temps de lire mon poste.
----Edit-----
J'ai enfin trouvé:
Code : Tout sélectionner
$maketag = StringSplit(@ComputerName,"-",2 )
$tag = $maketag[0]
If $maketag[0] = 'VAL' Then
If @CPUArch = "X64" Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\FusionInventory-Agent","proxy","REG_SZ","195.221.58.253:8080")
Else
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\FusionInventory-Agent","proxy","REG_SZ","195.221.58.253:8080")
EndIf
EndIf

