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

# Strumento di migrazione del server di registrazione legacy

Questo script PowerShell trasforma i file di registrazione delle sessioni dal server di registrazione Devolutions legacy al formato di registrazione delle sessioni di Devolutions Gateway, consentendole di eseguire la migrazione senza perdere le registrazioni precedenti. Una volta convertiti i file nel nuovo formato, sarà necessario reindicizzarli da Devolutions Server affinché possano essere individuati nella loro nuova posizione per la riproduzione da Devolutions Gateway.

La reindicizzazione consente il rilevamento dei record presenti sul lato Devolutions Gateway, rendendo possibile trasferire manualmente i file e poi reindicizzarli. Tuttavia, non è possibile semplicemente trascinare e rilasciare i file nella cartella; è necessario rispettare un formato specifico.

Scarichi il file [MigrateRecordings.ps1](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/MigrateRecordings.ps1) ed esegua lo script da un terminale PowerShell con privilegi elevati indicando come parametro il percorso di output delle registrazioni legacy:

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

Se Devolutions Gateway è configurato per utilizzare una posizione non predefinita, è possibile utilizzare `-RecordingsPath` per sovrascrivere il percorso di destinazione predefinito. È inoltre possibile eseguire la migrazione su una macchina per copiare manualmente i file nel percorso delle registrazioni di Devolutions Gateway su un'altra macchina.

{% hint style="info" %}
Un [file legacy.zip di esempio](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/legacy-recording/legacy.zip) contenente registrazioni legacy è disponibile come riferimento e per testare questo 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 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://docs.devolutions.net/powershell/it/devolutions-gateway-powershell/legacy-recording-server-migration-tool.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.
