• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remontées des utilisateurs local
#1
Bonsoir à tous,
Dans mon inventaire je vois bien un usager, qui change à chaque connexion. Visible dans l'historique, cependant j'aimerai remonter la liste des utilisateurs sur la machine locale. Des idées?
Kevin Carlens
  Reply
#2
Pas mal comme idée
  Reply
#3
pour le moment, il y a l'historique, mais ce n'est pas très pratique et surtout volumineux à terme
  Reply
#4
J'ai une première possibilité,

Via la fonction Collect, j'effectue la requête WMI suivant :

Nom: Liste utilisateurs
Class: Win32_UserAccount
Propriétés: Name

voici ce que le fichier de log me remonte:

[Fri Apr 7 11:38:31 2017][debug2] xxxxxxx/plugins/fusioninventory/b/collect/?action=setAnswer&_cpt=4&Name=Administrateur&_sid=2&uuid=58e75ce68f3fe
[Fri Apr 7 11:38:31 2017][debug] [http server] request / from client 127.0.0.1
[Fri Apr 7 11:38:31 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:32 2017][debug] [http server] request /site.css from client 127.0.0.1
[Fri Apr 7 11:38:32 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:32 2017][debug] [http server] request /logo.png from client 127.0.0.1
[Fri Apr 7 11:38:32 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:32 2017][debug] [http server] request / from client 127.0.0.1
[Fri Apr 7 11:38:32 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:32 2017][debug2] xxxxxxxx/plugins/fusioninventory/b/collect/?action=setAnswer&_sid=2&uuid=58e75ce68f3fe&_cpt=3&Name=DefaultAccount
[Fri Apr 7 11:38:32 2017][debug] [http server] request /site.css from client 127.0.0.1
[Fri Apr 7 11:38:32 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:32 2017][debug] [http server] request /logo.png from client 127.0.0.1
[Fri Apr 7 11:38:32 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:33 2017][debug] [http server] request / from client 127.0.0.1
[Fri Apr 7 11:38:33 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:33 2017][debug] [http server] request /site.css from client 127.0.0.1
[Fri Apr 7 11:38:33 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:33 2017][debug] [http server] request /logo.png from client 127.0.0.1
[Fri Apr 7 11:38:33 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:33 2017][debug2] xxxxxxxx/plugins/fusioninventory/b/collect/?action=setAnswer&Name=Invit%C3%A9&_cpt=2&uuid=58e75ce68f3fe&_sid=2
[Fri Apr 7 11:38:34 2017][debug] [http server] request / from client 127.0.0.1
[Fri Apr 7 11:38:34 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:34 2017][debug] [http server] request /site.css from client 127.0.0.1
[Fri Apr 7 11:38:34 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:34 2017][debug] [http server] request /logo.png from client 127.0.0.1
[Fri Apr 7 11:38:34 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:35 2017][debug2] xxxxxxxx/plugins/fusioninventory/b/collect/?action=setAnswer&uuid=58e75ce68f3fe&_sid=2&_cpt=1&Name=Kevin
[Fri Apr 7 11:38:35 2017][debug] [http server] request / from client 127.0.0.1
[Fri Apr 7 11:38:35 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:35 2017][debug] [http server] request /site.css from client 127.0.0.1
[Fri Apr 7 11:38:35 2017][debug] [http server] response status 200
[Fri Apr 7 11:38:35 2017][debug] [http server] request /logo.png from client 127.0.0.1

Cependant, seul le dernier ce trouve affiché dans la base de données WMI.
Kevin Carlens
  Reply
#5
Tu les as dans le XML normalement
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)