> 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/da/devolutions-gateway-powershell/legacy-recording-server-migration-tool.md).

# Legacy recording server migration tool

Brug MigrateRecordings PowerShell script at konvertere ældre Devolutions optagelse server filer til Devolutions Gateway optagelse format.

Denne PowerShell script transforms session optagelse filer fra ældre Devolutions optagelse server til Devolutions Gateway session optagelse format, allowing De til migrate uden losing forrige optagelser. Én gang filerne er blevet converted til ny format, de vil behøver til være re-indexed fra Devolutions Server så at de kan være found i deres ny placering for playback fra Devolutions Gateway.

Re-indexing aktiverer detection af poster nuværende på Devolutions Gateway side, making den mulig til manuelt transfer filerne og derefter re-indeks. However, den er ikke mulig til simply drag og drop filerne til mappen; en specifik format behøver til være adhered til.

Download [MigrateRecordings.ps1](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/MigrateRecordings.ps1) og run den fra en elevated PowerShell terminal med ældre optagelse output sti som en parameter:

```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)
```

Hvis Devolutions Gateway er konfigureret til at bruge en non-standard placering, `-RecordingsPath` kan være brugt til tilsidesættelse standard destination sti. De kan også perform migreringen på en maskine til manuelt copy filerne over til Devolutions Gateway optagelser sti på en different maskine.

{% hint style="info" %}
A [eksempel legacy.zip fil](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/legacy.zip) der indeholder ældre optagelser er tilgængelig for reference og testing denne 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/da/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.
