• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Déploiement via script .vbs
#1
Bonjour à tous,

J'ai packagé toutes les étapes du déploiement d'un hôte Teamviewer (désinstallation des versions précédentes, installation et configuration de l'hôte) dans un script Master-Teamviewer-v1.2.vbs.

Si je double clique sur le script à partir d'un poste, pas de problème tout fonctionne, en revanche quand je lance une tâche de déploiement rien ne se passe.

Voici les différentes étapes de ma tâche de déploiement :
1/ je créer le répertoire C:\DEPLOY
2/ je copie en local (sur C:\DEPLOY) le script + l'exécutable
3/ je lance la commande suivante : cscript.exe C:\DEPLOY\Master-Teamviewer-v1.2.vbs

Je pense que le soucis viens du fait que la tâche de déploiement s'exécute en utilisateur System, n'y a-t-il pas un moyen de la lancer avec un autre compte ? Que se soit le compte de l'utilisateur ou un autre ne me pose aucun problème, mes utilisateurs sont admin de leurs poste.

Merci par avance ;-)

--

GLPI v0.84.3
Plugin Fusioninventory v0.84+2.0
Agent fusioninventory v2.3.4
OS serveur : Windows 2008 R2 - Zend Server
OS client : Windows 7 Pro 32/64 bits
  Reply
#2
Peut-être que les logs de l'agent peuvent vous être utiles ? Au cas où je vous les met :
======================================================================================================
[Tue Jun 17 16:06:53 2014][debug] [http server] request /now/12345678 from client 192.168.0.86
[Tue Jun 17 16:06:53 2014][debug] [http server] valid request, forcing execution right now
[Tue Jun 17 16:06:55 2014][debug] [http client] Using Compress::Zlib for compression
[Tue Jun 17 16:06:55 2014][debug] running task Inventory in process -5036
[Tue Jun 17 16:06:55 2014][debug] FusionInventory Inventory task 1.0
[Tue Jun 17 16:06:55 2014][debug] --scan-homedirs missing. Don't scan user directories
[Tue Jun 17 16:07:00 2014][debug] module FusionInventory::Agent::Task::Inventory::Win32::Bios disabled because of FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode::Bios
[Tue Jun 17 16:07:00 2014][debug] module FusionInventory::Agent::Task::Inventory::Win32::Memory disabled because of FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::AccessLog
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode::Battery
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode::Bios
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode::Memory
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode:Tongueorts
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic:Big Grinmidecode::Slots
[Tue Jun 17 16:07:00 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Screen
[Tue Jun 17 16:07:02 2014][debug] unknown field TYPE for section MONITORS
[Tue Jun 17 16:07:02 2014][debug] unknown field NAME for section MONITORS
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Storages
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Virtualization
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::AntiVirus
[Tue Jun 17 16:07:02 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::CPU
[Tue Jun 17 16:07:05 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Chassis
[Tue Jun 17 16:07:05 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Controllers
[Tue Jun 17 16:07:09 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32:Big Grinrives
[Tue Jun 17 16:07:09 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Environment
[Tue Jun 17 16:07:10 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Inputs
[Tue Jun 17 16:07:10 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::License
[Tue Jun 17 16:07:12 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Modems
[Tue Jun 17 16:07:12 2014][debug] unknown field MODEL for section MODEMS
[Tue Jun 17 16:07:13 2014][debug] unknown field TYPE for section MODEMS
[Tue Jun 17 16:07:13 2014][debug] unknown field MODEL for section MODEMS
[Tue Jun 17 16:07:13 2014][debug] unknown field TYPE for section MODEMS
[Tue Jun 17 16:07:13 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Networks
[Tue Jun 17 16:07:15 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::OS
[Tue Jun 17 16:07:19 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32:Tongueorts
[Tue Jun 17 16:07:19 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32:Tonguerinters
[Tue Jun 17 16:07:19 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Slots
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] invalid value OK for field STATUS for section SLOTS
[Tue Jun 17 16:07:19 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Softwares
[Tue Jun 17 16:07:25 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Sounds
[Tue Jun 17 16:07:25 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Storages
[Tue Jun 17 16:07:29 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::USB
[Tue Jun 17 16:07:32 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Users
[Tue Jun 17 16:07:41 2014][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Videos
[Tue Jun 17 16:07:41 2014][debug] Section HARDWARE has changed since last inventory
[Tue Jun 17 16:07:41 2014][debug] Section DRIVES has changed since last inventory
[Tue Jun 17 16:07:41 2014][debug] [http client] Using Compress::Zlib for compression
[Tue Jun 17 16:07:43 2014][debug] running task NetInventory in process -1848
[Tue Jun 17 16:07:43 2014][debug] No SNMPQuery requested in the prolog
[Tue Jun 17 16:07:43 2014][info] task NetInventory execution not requested
[Tue Jun 17 16:07:49 2014][debug] running task Deploy in process -4244
[Tue Jun 17 16:07:50 2014][debug] Free space on C:\Program Files\FusionInventory-Agent\var\http..__glpi.nexilis.local_plugins_fusioninventory\deploy: 230398
[Tue Jun 17 16:07:51 2014][debug] http://glpi.nexilis.local/plugins/fusion...3bd8ab7f07
[Tue Jun 17 16:07:51 2014][debug] http://glpi.nexilis.local/plugins/fusion...8102a1e99f
[Tue Jun 17 16:07:53 2014][debug] reading 469a574533090f5df06c1532bf737a3a49c3bedfcc59e5f341ebee3dfa0f6463096bfadef3c69aa8b01cb80625e195505bbf99ad8a6590afb2674d3bd8ab7f07
[Tue Jun 17 16:07:53 2014][debug] reading 3c64e7eb6aa5b0926bc33ab400a31f22c9f54f117ad9cb1002d5ed11b20067389c032c3880696666cc6a9ceb94c771755908f571d6f1b6b75501cb8102a1e99f
[Tue Jun 17 16:07:53 2014][debug] Directory C:\DEPLOY already exists
[Tue Jun 17 16:08:00 2014][debug]

[Tue Jun 17 16:08:00 2014][debug] C:\Program Files\FusionInventory-Agent\perl\bin>cd "C:\Program Files\FusionInventory-Agent\var\http..__glpi.nexilis.local_plugins_fusioninventory\deploy\workdir\53a04b7d87300"

[Tue Jun 17 16:08:00 2014][debug]

[Tue Jun 17 16:08:00 2014][debug] C:\Program Files\FusionInventory-Agent\var\http..__glpi.nexilis.local_plugins_fusioninventory\deploy\workdir\53a04b7d87300>cscript.exe C:\DEPLOY\Master-Teamviewer-v1.2.vbs

[Tue Jun 17 16:08:00 2014][debug] Microsoft ® Windows Script Host Version 5.8

[Tue Jun 17 16:08:00 2014][debug] Copyright © Microsoft Corporation 1996-2001. Tous droits r‚serv‚s.

[Tue Jun 17 16:08:00 2014][debug]

[Tue Jun 17 16:08:00 2014][debug]

[Tue Jun 17 16:08:00 2014][debug] C:\Program Files\FusionInventory-Agent\var\http..__glpi.nexilis.local_plugins_fusioninventory\deploy\workdir\53a04b7d87300>exit 0

[Tue Jun 17 16:08:00 2014][debug] --------------------------------
[Tue Jun 17 16:08:00 2014][debug] exit status: `0'
[Tue Jun 17 16:08:00 2014][debug] exit status is ok: 0
[Tue Jun 17 16:08:00 2014][debug] exitStatus: 0
[Tue Jun 17 16:08:00 2014][debug] Free space on C:\Program Files\FusionInventory-Agent\var\http..__glpi.nexilis.local_plugins_fusioninventory\deploy: 230397
[Tue Jun 17 16:08:01 2014][debug] running task NetDiscovery in process -5176
[Tue Jun 17 16:08:01 2014][debug] No NetDiscovery requested in the prolog
[Tue Jun 17 16:08:01 2014][info] task NetDiscovery execution not requested
[Tue Jun 17 16:08:07 2014][debug] running task WakeOnLan in process -4412
[Tue Jun 17 16:08:07 2014][debug] No WakeOnLan requested in the prolog
[Tue Jun 17 16:08:07 2014][info] task WakeOnLan execution not requested
==================================================================================================

Merci encore ;-)
--
GLPI v0.84.3
Plugin Fusioninventory v0.84+2.0
Agent fusioninventory v2.3.4
OS serveur : Windows 2008 R2 - Zend Server
OS client : Windows 7 Pro 32/64 bits
  Reply
#3
Non ce n'est pas possible de partir dans une autre session
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
  Reply
#4
Bonjour,

Le fait de lancer le script en tant qu'utilisateur System n'était qu'une supposition... Peut-être que le soucis viens d'ailleur ? une idée/piste ?

Merci

--

GLPI v0.84.3
Plugin Fusioninventory v0.84+2.0
Agent fusioninventory v2.3.4
OS serveur : Windows 2008 R2 - Zend Server
OS client : Windows 7 Pro 32/64 bits
  Reply
#5
Lancer un psexec :p
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)