> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/fr/devolutions-gateway-powershell/legacy-recording-server-migration-tool.md).

# Outil de migration de l'ancien serveur d'enregistrement

Utilisez le script PowerShell MigrateRecordings pour convertir les fichiers de l'ancien serveur d'enregistrement Devolutions au format d'enregistrement de Devolutions Gateway.

Ce script PowerShell transforme les fichiers d'enregistrement de session de l'ancien serveur d'enregistrement Devolutions au format d'enregistrement de session de Devolutions Gateway, ce qui vous permet de migrer sans perdre les enregistrements précédents. Une fois les fichiers convertis au nouveau format, ils devront être réindexés à partir de Devolutions Server afin qu'ils puissent être trouvés à leur nouvel emplacement pour la lecture depuis Devolutions Gateway.

La réindexation permet la détection des enregistrements présents du côté de Devolutions Gateway, ce qui rend possible le transfert manuel des fichiers, puis leur réindexation. Cependant, il n'est pas possible de simplement glisser-déposer les fichiers dans le dossier; un format spécifique doit être respecté.

Téléchargez le fichier [MigrateRecordings.ps1](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/MigrateRecordings.ps1) et exécutez-le depuis un terminal PowerShell avec privilèges élevés en indiquant le chemin de sortie des anciens enregistrements comme paramètre :

```powershell
PS > .\MigrateRecordings.ps1 -LegacyPath "C:\inetpub\recording\output"
Migrating recordings to 'C:\ProgramData\Devolutions\Gateway\recordings'
Migrating 7e05bf2d-c97b-44eb-b256-351b3e2ef1f0 (075503d9-d016-496e-b0aa-cab8b020ce2d)
Migrating 2115ab16-308c-4eb4-a871-73bc8fd69022 (0f366b0e-e09d-4f57-b290-779f46fb68fd)
Migrating 479930c5-705a-4051-9edf-bdc2748452a4 (39a7d0ec-339e-4086-8d73-fbf455e1038a)
Migrating 2e3d219b-48a3-432a-b214-f11b8ddaa32e (b3409164-078b-4013-b4f6-9a4663d3df98)
```

Si Devolutions Gateway est configuré pour utiliser un emplacement autre que celui par défaut, le paramètre `-RecordingsPath` peut être utilisé pour remplacer le chemin de destination par défaut. Vous pouvez aussi effectuer la migration sur une machine pour copier manuellement les fichiers vers le chemin des enregistrements de Devolutions Gateway sur une autre machine.

{% hint style="info" %}
Un [exemple de fichier legacy.zip](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/legacy.zip) contenant d'anciens enregistrements est disponible à titre de référence et pour tester ce script.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell/fr/devolutions-gateway-powershell/legacy-recording-server-migration-tool.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 `automate deployments from our CI pipeline` 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.
