> For the complete documentation index, see [llms.txt](https://help.glpi-project.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.glpi-project.org/tutorials/fr/inventory/collect_data.md).

# Collecte de données

{% hint style="info" %}
**Information**

Le plugin GLPI Inventory est disponible dans le menu **`Administration`** > **`GLPI Inventory`**\
S'il n'est pas installé, veuillez aller dans le **marketplace**, et installer le plugin GLPI Inventory

\
![Texte alternatif](/files/a2R4RBm7mQLWqzmhwyp4)
{% endhint %}

## Déclaration d'une donnée à interroger

{% hint style="info" %}
**Information**

Dans l'exemple suivant, nous allons vérifier que l'utilisateur a l'icône thunderbird sur son bureau (qui dans ce cas est une application portable).
{% endhint %}

Allez dans **`administration`** > **`GLPI Inventory`** > **`tâches`** > **`informations ordinateur`**

<div align="left"><img src="/files/N8Wqx7AY6I9lJ0byunhC" alt=""></div>

Puis créez un nouvel élément **`ajouter`** :

![](/files/KnchJEcuAjfQa3Cm1bcF)

La fenêtre suivante vous permettra de saisir les informations suivantes :

* Un nom
* Un commentaire
* Un type
  * Registre
  * [WMI](broken://spaces/QFOh36etagWOcP9q4ECb/pages/uyV7vc1BgpEAKyDInQFN#comment-configurer-la-collecte-wmi)
  * Recherche d'un fichier
* Actif ou non
* Visible dans une sous-entité ou non

![](/files/FFFdABeWy0kIBvtFh5I0)

Une fois que vous avez cliqué sur **`Ajouter`**, un onglet **`Configuration de collecte`** apparaît dans le menu de gauche, vous permettant de configurer la collecte de données pour l'une des trois options suivantes, selon le type choisi :

* WMI Windows
* Recherche de fichier
* Registre Windows

![](/files/N5QYq5RlAehJ76baaKSH)

## Création de la tâche

Allez dans **`administration`** > **`GLPI Inventory`** > **`tâches`** > **`gestion des tâches`**

<div align="left"><img src="/files/NES33Px9VHIWQ6aw3Nne" alt=""></div>

Puis créez une nouvelle tâche avec **`ajouter`** :

![](/files/4yZXCTdX9DLMXGRoGU31)

Créez la tâche :

![](/files/GkpcwxwAj90Etg0Pzu4Z)

Puis dans **`Configuration de job`**, ajoutez un job :

![](/files/Pqaf9BE4sI3D0pFsOKeC)

Et configurez le job de collecte dans cette tâche :

![](/files/BRhAdnqLnt3V2EUTKJYy)

Une fois le job activé, préparé et repris par l'agent, vous pouvez voir le résultat de l'exécution du job ici :

![](/files/nnC8XKm3ia3KfJ3Ma4hz)

Dans la fiche ordinateur, un nouvel onglet **`Informations de collecte`** apparaît avec la valeur trouvée pour le fichier :

<div align="left"><img src="/files/oQ1docUTPOKU4mibYJkT" alt=""></div>

![](/files/rY6ojcH0nilj0mBlw1Q6)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.glpi-project.org/tutorials/fr/inventory/collect_data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
