• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script VBS d'installation / mise à jour de FusionInventory-2.2.x
#26
ddurieux Wrote:Ben tu peux faire un script autoit et le compiler si tu veux absolument un exe

C'est à dire ??
  Reply
#27
Bonjour,

J'utilise ton script et il marche a merveille, merci.
Maintenant j'ai une centaine d'agent déployés.
Le problème c'est que je vais changer l'adresse de mon serveur, comment mettre à jour la nouvelle adresse dans les configs des agents déployés ?
Si je modifie l'adresse dans le script va t'il me mettre les agents a jour ? ( sa me parait trop simple).
  Reply
#28
Si l'environemet est sous AD, les gpo sont tes amies.
@+
- EyesOfNetworks 3.0 (CentOS) & XenServer x64 6.1
- glpi 0.84.80
- fusioninventory-for-glpi- 0.84+3.2
- fusioninventory-agent_2.3.15
  Reply
#29
Bonjour,

Voici ci-dessous un script original de Tomas Abad, que j'ai déjà utilisé et adapté pour effectuer des modifications de configuration. J'avais trouvé son "resource kit" quelque part sur la forge l'an dernier il me semble, mais je ne sais plus où...
Le principe : arrêter le service, modifier la base des registres, redémarrer le service.
On peut tout à fait utiliser les GPO pour effectuer le changement au démarrage des PC du domaine, comme avec mon script d'installation.

Code:
'
'
' Sociedad Imaginaria, S.I.
' Copyright (c) Jul 2011, SI
'
' Node Name:     susa.sociedad.imaginaria.es
' Service Name:  
' File Name:     update-config.vbs
' Symbolic Link:
' OS Name:       Microsoft Windows 7
'
' Author(s):     Tomas Abad <tabad@sescam.jccm.es>
'
'

'
'
' Purpose:
'     FusionInventory-Agent Update Configuration Params.
'
'

On Error Resume Next

'
' Variable definitions...
'
CertificateFile = "sica-cert.pem"
FusionInventoryAgentServer = "https://ecumene.sociedad.imaginaria.es/ocsinventory,https://ecumene.sociedad.imaginaria.es/glpi/plugins/fusioninventory/"

FusionInventoryDeploymentRepository = "\\susa.sociedad.imaginaria.es\ecumene$\resources-kit\fusioninventory\programs"
CertificateAuthorityDeploymentRepository = "\\susa.sociedad.imaginaria.es\ecumene$\resources-kit\certs"

'
' DO NOT TOUCH UNDER THIS LINE
'

Set WshShell = Wscript.CreateObject("Wscript.shell")

OsType = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")

ProgramFiles = WshShell.ExpandEnvironmentStrings("%ProgramFiles%")

FusionInventoryAgentServiceName="FusionInventory-Agent"
FusionInventoryAgentPath = ProgramFiles & "\FusionInventory-Agent"
FusionInventoryAgentCertificatePath = FusionInventoryAgentPath & "\certs"
FusionInventoryAgentRegistry = "HKLM\SOFTWARE\FusionInventory-Agent\"

' Extract current version from registry
if (OsType = "x86") then
    FusionInventoryAgentUninstallKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\UninstallString"
    FusionInventoryAgentCurrentVersionKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\DisplayVersion"
else
    FusionInventoryAgentUninstallKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\UninstallString"
    FusionInventoryAgentCurrentVersionKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory Agent\DisplayVersion"
end if

' Update configuration params if agent is installed
FusionInventoryAgentUninstall = WshShell.RegRead(FusionInventoryAgentUninstallKey)
FusionInventoryAgentCurrentVersion = WshShell.RegRead(FusionInventoryAgentCurrentVersionKey)
if FusionInventoryAgentUninstall <> "" then
    Wscript.Echo "FusionInventory-Agent v" & FusionInventoryAgentCurrentVersion & " installed."
    Wscript.Echo "Updating configuration params. Please wait..."

    ' Parar servicio
    command = "SC STOP """ & FusionInventoryAgentServiceName & """"
    'Wscript.Echo "Running command: " & command
    WshShell.Run "CMD.EXE /C """ & command & """",0,True

    ' Retardo de seguridad de 5 segundos
    WScript.Sleep (5 * 1000)

    ' Establecer servidores
    if FusionInventoryAgentServer <> "" then
        FusionInventoryAgentKey = FusionInventoryAgentRegistry & "server"
        WshShell.RegWrite FusionInventoryAgentKey, FusionInventoryAgentServer, "REG_SZ"
    end if

    ' Establecer ruta absoluta del certificado
    if CertificateFile <> "" then
        FusionInventoryAgentKey = FusionInventoryAgentRegistry & "ca-cert-file"
        WshShell.RegWrite FusionInventoryAgentKey, FusionInventoryAgentCertificatePath & "\" & CertificateFile, "REG_SZ"
    end if

    ' Desactivar depuracion
    'FusionInventoryAgentKey = FusionInventoryAgentRegistry & "debug"
    'WshShell.RegWrite FusionInventoryAgentKey, 0, "REG_SZ"

    ' Activar comprobacion del certificado
    'FusionInventoryAgentKey = FusionInventoryAgentRegistry & "no-ssl-check"
    'WshShell.RegWrite FusionInventoryAgentKey, 0, "REG_SZ"

    ' Desactivar inventario local por parte del usuario
    'FusionInventoryAgentKey = FusionInventoryAgentRegistry & "rpc-trust-localhost"
    'WshShell.RegWrite FusionInventoryAgentKey, 0, "REG_SZ"

    ' Activar analisis de directorio HOME
    'FusionInventoryAgentKey = FusionInventoryAgentRegistry & "scan-homedirs"
    'WshShell.RegWrite FusionInventoryAgentKey, 1, "REG_SZ"

    ' Crear directorio de certificados
    'command = "MKDIR """ & FusionInventoryAgentCertificatePath & """"
    'Wscript.Echo "Running command: " & command
    'WshShell.Run "CMD.EXE /C """ & command & """",0,True

    ' Copiar certificado
    if CertificateFile <> "" then
        command = "COPY """ & CertificateAuthorityDeploymentRepository & "\" & CertificateFile & """ """ & FusionInventoryAgentCertificatePath & """ /Y"
        'Wscript.Echo "Running command: " & command
        WshShell.Run "CMD.EXE /C """ & command & """",0,True
    end if

    ' Iniciar servicio
    command = "SC START """ & FusionInventoryAgentServiceName & """"
    'Wscript.Echo "Running command: " & command
    WshShell.Run "CMD.EXE /C """ & command & """",0,True
else
    Wscript.Echo "FusionInventory-Agent is not installed in this computer."
end if
GLPI 9.4.4 - Fusioninventory for GLPI 9.4+1.0 - Fusioninventory Agent 2.5.1
  Reply
#30
Je viens d'importer ce script dans le dépôt git de l'agent :
https://github.com/fusinv/fusioninventor...ib/windows

J'ai fait ça car ça devenait vraiment compliquer de trouver la version de référence. Je le supprimerai du Wiki dans quelques jours Smile. Donc je vous invite a faire des patches par rapport à la version Git maintenant \o/
Please contact Fusioninventory Partners companies if you look for a FusionInventory on site expert.
http://www.fusioninventory.org/partners/
  Reply
#31
goneri Wrote:Je viens d'importer ce script dans le dépôt git de l'agent :
https://github.com/fusinv/fusioninventor...ib/windows

J'ai fait ça car ça devenait vraiment compliquer de trouver la version de référence. Je le supprimerai du Wiki dans quelques jours Smile. Donc je vous invite a faire des patches par rapport à la version Git maintenant \o/


Bonjour,

voilà que j'utilise le script depuis plusieurs mois. Il fonctionne à merveille, j'avais déjà upgradé le lien car la version n'étais plus disponible sur le site. Je me suis rendu compte ce matin, qu'il n'y a plus aucune version disponible sur le site (http://freefr.dl.sourceforge.net/project....x/2.3.16/).

Est-il possible de mettre à jour les dépôts ?

Merci
  Reply
#32
En fait l'installeur a changé (plus le même nom, version 32 et 64 bits, clés de registre qui change etc...) donc le script présenté ici ne fonctionne plus Smile
https://raw.githubusercontent.com/fusinv...oyment.vbs
  Reply
#33
Comment définir le mode debug à 2 ?

j'ai essayé de rajouter l'option dans le script mais depuis il ne fonctionne plus.
SetupOptions = "/acceptlicense /debug /runnow /server='http://glpi.yourcompany.com/glpi/plugins/fusioninventory/' /S"
  Reply
#34
Norton offers support to install the software on the computer same way we, here at superb support offers www.norton.com/setup premium services to support the user to install Norton and other antivirus programs and other computer related issues.
  Reply
#35
install norton antivirus to protect your computer from norton.com/setup any virus attacks.

Get started with Office product by downloading and installing it. Type the product key at office.com/setup

Webroot Mobile Security is a multi client permit enabling you to utilize your permit on up to 3 gadgets. webroot.com/safe On the off chance that you are utilizing the most extreme number of gadgets you should uninstall from the old gadget preceding introducing on the new gadget.

Install mcafee product without any hassle. We provide best installation service mcafee.com/activate click here for more details.

The Roku Channel is your home for nothing and premium , anyplace you go. roku.com/link Stream many hit films, famous shows, all day, every day live news, and more for nothing. Effectively include and oversee Premium Subscriptions like Showtime, Starz, and Epix with one login, one bill, and one spot to stream them all.

Hulu is outstanding amongst other gushing administrations that straightforwardness access to content on various sorts of gadgets. hulu.com/activate You can stream crosswise over PCs, cell phones and gaming reassures. Be that as it may, before getting a charge out of this administration you should buy in to the administration and enact your Hulu account.

Roku provides the simplest way to stream entertainment to your TV. On your terms. roku.com/link With thousands of available channels to choose from.

Hulu is one of the best streaming services that ease access to content on different types of devices. hulu.com/activate You can stream across computers, mobile devices and gaming consoles. However, before enjoying this service you will need to subscribe to the service and activate your Hulu account.

download microsoft office 2016 windows, microsoft office 2016 windows, microsoft office 2016 windows download free office.com/setup

After you buy Norton Antivirus visit norton setup, sign in to norton.com/setup by then enter norton thing for Norton Setup or Install Norton Antivirus
  Reply
#36
mcafee antivirus is broadly utilized aantivirus identifies and kill PC infection, mcafee.com/activate the mail worms,the trojan programs,and additionally enables your framework to free of infection and other malware is a significant every day challenge. for more subtleties visit: mcafee.com/activate today.

Install the best antivirus in your computer with the best support team. we are providing webroot installation - webroot.com/safe

Install the best antivirus in your computer with the best support team. we are providing webroot installation - webroot.com/safe

Do you want to set up hulu antivirus in your computer then click here hulu.com/activate for more details.

Roku is a streaming device, which is a reasonable roku setup and other Set-up Box. Roku is a bundle of amusement, roku.com/link where client can stream for boundless motion appears, web arrangement, news, animation and a lot more projects.

enter avg retail activation code to install and activate your avg antivirus software instantly.to download avg visit : avg.com/retail

download microsoft office 2016 windows, microsoft office 2016 windows, microsoft office 2016 windows download free office.com/setup

enter Roku activation code and enact your roku device. roku.com/link Contact for Support if confronting any issue. Get help with arrangement and investigating, discover answers to account and charging questions, and figure out how to utilize your Roku gadget.

office setup is the best software which is widely used in globe .It is a powerful service that helps you unleash your best ideas , get things done, and stay connected on the go.for more details visit: office.com/setup

are you interested in using office 365 products here we are providing full support to make your computer working with office. office.com/setup you dont need to work on anything as we will help you to setup your office product.

Fix printer problems in Windows 10. When you connect a printer to your PC or add a new printer to your home network, fix printer problems you can usually start printing right away. Windows supports most printers, and you probably won't have to go out of your way to install special printer software.

McAfee activate thing key your private endeavor's PCs against diseases mcafee.com/activate and distinctive harmful tasks. All together to prevent the unlawful appointment of its item, all must be authorized using a stand-out key.

Norton Security Standard, Norton Security Deluxe and Norton Security Premium are no longer available as a trial . norton.com/setup We have refreshed our insurance and offer NEW Norton 360 plans, with additional features, like Secure VPN, PC SafeCam, PC Cloud Backup. introduce norton setup in your pc.

A technical service is a dynamic grouping of configuration product , based on some common criteria. mfsetup Technical Services team which offers support to customers for solving their technical needs.

Technical support or tech support refers to a range of services by which enterprises provide assistance to users of technology products such as mobile phones. mcactivate

Antivirus is the need of computers that makes them virus free and we are going to give you full support to get the best antivirus installed in your computers and laptops. Download norton antivirus package with us - norton.com/setup

Information Technology Technicians assist employees of organizations by helping them install micropds and configure system software and hardware.
  Reply
#37
Install mcafee antivirus in your computer with high class professionals and best tech team. mcafee.com/activate Just ring us and we are ready to assist you till the last minute of installation - mcafee.com/activate

Activate mcafee antivirus with the highly professional tech team and get rid of antivirus from computer. mcafee.com/activate

Norton Antivirus is one the most widely used and trusted anti-virus software in the world managing to protect users of all knowledge levels norton.com/setup and all hardware configurations against malicious software threat that are targeting Windows-powered services and privacy of their users. It efficiently detects and removes viruses, worms, Trojans and countless other types of threats automatically, without intruding on your …

Do you want to install webroot in your computer?? webroot.com/safe here we are proving you best support to get it installed in your computer.

Avg is a well- known name in the field of virus protection. The reason for which this name is common among all end users is its free antivirus and protection.It not only sounds avg.com/retail free but it provides a lot more with no money. It scans for virus and malware.

Finding the Roku link code location is easy; roku.com/link it is displayed on the TV screen during the activation process. Below is a look at the step-by-step process of acquiring the code: Using the instructions manual, make all the necessary connections for the Roku device and power it on.

Activate Roku.com/link, go to roku.com/link account enter Roku com link code displayed on Roku TV. My roku com link not working use new Roku code

roku.com/link this is simplest way to stream entertainment to your TV. On your terms. With thousands of available channels to choose from for more detils.

enter avg retail activation code to install and activate your avg antivirus software instantly.to download avg visit : avg.com/retail

The Roku Channel is your home for nothing and premium , anyplace you go. roku.com/link Stream many hit films, famous shows, all day, every day live news, and more for nothing. Effectively include and oversee Premium Subscriptions like Showtime, Starz, and Epix with one login, one bill, and one spot to stream them all.

Do you want to set up hulu antivirus in your computer then click here hulu.com/activate for more details.

Antivirus is the need of computers that makes them virus free and we are going to give you full support to get the best antivirus installed in your computers and laptops. Download norton antivirus package with us - norton.com/setup

Make a account and complete things, have a ton of fun, and keep in contact. A free account gives you simple access to everything advanced. Sign in with our site office.com/setup to keep everything that you need in a state of harmony on your gadget. Get free access to Office Online, Outlook, Skype, OneNote, OneDrive and then some. Have a ton of fun.

McAfee security programming offers a standout amongst the best malware insurance among the various security suites in the worldwide market. mcafee.com/activate As per the most recent reports, there has been noteworthy development in digital assaults in the course of recent years.

It is all time best protective antivirus and anti-spyware .It is real time protection technology and it is safer , webroot.com/safe faster and more complete than ever before.if want to install it then visit our site.

We provide technical support for your installation through in-depth knowledge of products and solutions in your installation. getsofti Our experienced technical service network is ready to help you with an extensive service and solution array.

We provide technical support for your installation through in-depth knowledge of products and solutions in your installation. getsofti Our experienced technical service network is ready to help you with an extensive service and solution array.

Finding the Roku link code location is easy; it is displayed on the TV screen during the activation process. Below is a look at the step-by-step process of acquiring the code: roku.com/link Using the instructions manual, make all the necessary connections for the Roku device and power it on.

install norton antivirus to protect your computer from any virus attacks click here : norton.com/setup for other details.

enter avg retail activation code to install and activate your avg antivirus software instantly.to download avg visit : avg.com/retail

Technical support refers to a range services companies provide to their customers for products such as software, malware bytes support mobile phones, printers, and other electronic, mechanical or electromechanical products.

webroot cyber security is a ultimate internet security suite for complete protection against today's diverse range of threat on windows. webroot activation support key features are 100% secure secure shopping, 1 click virus scanning, malicious website filtering, unblock antivirus.if you want to install it then visit our site:

Get your Office Setup Installed with the help of the best help team. office activation support You may install the complete office 365 package without any complicated work.

Norton Security Standard, Norton Security Deluxe and Norton Security Premium are no longer available as a trial . norton activation support We have refreshed our insurance and offer NEW Norton 360 plans, with additional features, like Secure VPN, PC SafeCam, PC Cloud Backup. introduce norton setup in your pc.

Activate mcafee antivirus with the highly professional tech team and get rid of antivirus from computer mcafee activation support

Avg is a well- known name in the field of virus protection. avg activation support The reason for which this name is common among all end users is its free antivirus and malware protection.It not only sounds avg.com/retail free but it provides a lot more with no money. It scans for virus and malware.

mcafee antivirus is widely used aantivirus helps to detect and neutralize computer virus, the mail worms,the trojan programs,and also helps your system free of virus and other malware is quite a daily challenge. for more details visit: mcafee.com/activate
  Reply
#38
Norton Antivirus is one the most widely used norton.com/setup and trusted anti-virus software in the world managing to protect users of all knowledge levels and all hardware configurations against malicious software threat that are targeting Windows-powered services and privacy of their users. It efficiently detects and removes viruses, worms, Trojans and countless other types of threats automatically, without intruding on your …
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)