> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/tech-fr/8.7/synchroniser-un-annuaire-par-ligne-de-commande.md).

# Synchroniser un annuaire par ligne de commande

La synchronisation automatique des utilisateurs et groupes est assurée par ce service Windows. Ce service est installé par l'ensemble de configuration et lancé automatiquement après l'installation.

Le chemin d'installation suggéré par défaut se trouve sur `DISQUE:\Program Files\Advantys\WorkflowGen\Services\bin\WfgDirectoriesSyncService.exe`.

Le service de synchronisation peut être aussi exécuté à partir d'une ligne de commande.

Vous devez spécifier le paramètre `/c` ou `/console`.

Les paramètres suivants sont facultatifs :

| **Paramètre**         | **Définition**                                                                                                              |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `/p[ath]:location`    | Emplacement du fichier `web.config` utilisé pour la synchronisation (habituellement le fichier `web.config` de WorkflowGen) |
| `/d[irectories]:list` | Liste des annuaires à synchroniser (`,` ou `;` comme séparateur)                                                            |
| `/s[ilence]`          | Aucun message ne sera généré dans la console                                                                                |
| `/t[est]`             | Lancer un test de synchronisation                                                                                           |
| `/h[elp]` ou `/?`     | Affichage de l'aide pour l'exécution par la console                                                                         |

{% hint style="info" %}
Lorsqu’une erreur intervient, un code de sortie `1` est retourné, sinon `0` est retourné.
{% endhint %}

### Exemple 1

Cet exemple lance la synchronisation des annuaires de l'instance WorkflowGen installée dans le dossier `D:\inetpub\wwwroot\wfgen` :

```
WfgDirectoriesSyncService.exe /c /p:D:\inetpub\wwwroot\wfgen\web.config
```

### Exemple 2

Cet exemple force la synchronisation des annuaires `MonRep` de l'instance WorkflowGen installée dans le dossier `D:\inetpub\wwwroot\wfgen` :

```
WfgDirectoriesSyncService.exe /c /p:D:\inetpub\wwwroot\wfgen\web.config /d:MonRep
```


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.workflowgen.com/tech-fr/8.7/synchroniser-un-annuaire-par-ligne-de-commande.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
