> 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/rdm/it/knowledge-base/how-to-articles/export-and-import-entries.md).

# Esportare e importare voci

{% embed url="<https://youtu.be/jipoCzhIEs8>" %}

Esporti e importi le voci da un tipo di spazio di lavoro a un altro. Esistono molti modi per esportare le voci con Remote Desktop Manager.

{% hint style="warning" %}
Se ha utenti che sovrascrivono le proprietà delle voci con le ***Impostazioni specifiche dell'utente***, dovranno esportare e importare il loro ***Elenco impostazioni specifiche dell'utente***. Consulti [Esportare e importare le impostazioni specifiche dell'utente](/rdm/it/knowledge-base/how-to-articles/export-and-import-user-specific-settings.md).
{% endhint %}

Il primo metodo viene eseguito direttamente in Remote Desktop Manager, mentre il secondo utilizza uno script PowerShell.

### Esportazione/importazione tramite Remote Desktop Manager

1. In Remote Desktop Manager, selezioni il suo spazio di lavoro nel ***riquadro di navigazione***.

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Per esportare l'intera cassaforte, vada su <em><strong>File</strong></em> – <em><strong>Esporta</strong></em> – <em><strong>Esporta cassaforte (.rdm)</strong></em> e passi al passaggio 4.</p></div>
2. Selezioni le voci e/o le cartelle che desidera esportare. Utilizzi la scorciatoia <kbd>Ctrl</kbd>+clic per selezionare più elementi contemporaneamente.
3. Faccia clic con il pulsante destro del mouse sulla selezione. Nel menu contestuale, selezioni ***Esporta*** – ***Esporta selezione (.rdm)***.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4998.png" alt=""><figcaption></figcaption></figure>
4. Nella finestra ***Esporta voci***, selezioni le opzioni che desidera abilitare. Per una migrazione tipica, selezioni le opzioni ***Includi credenziali, Includi allegati e documenti*** e ***Cripta con chiave master***.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Per impostazione predefinita, le credenziali <strong>non</strong> sono incluse. È fondamentale selezionare l'opzione <em><strong>Includi credenziali</strong></em> affinché i dati esportati le includano.</p></div>

   <div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p>Specificando una chiave master, l'intero contenuto del file <strong>.rdm</strong> verrà criptato per proteggerlo. È vivamente consigliato come misura di backup, ma la chiave è assolutamente necessaria per la decrittazione. La conservi su un dispositivo di archiviazione separato per maggiore sicurezza.</p></div>

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4839.png" alt=""><figcaption></figcaption></figure>
5. Faccia clic su ***OK***.
6. Salvi il file **.rdm** sul suo computer.
7. Nel ***riquadro di navigazione***, selezioni lo spazio di lavoro e la cassaforte in cui importare le voci.
8. Faccia clic con il pulsante destro del mouse sulla cartella e selezioni ***Importa*** – ***Importa (.rdm)***.

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Può importare l'intera cassaforte in <em><strong>File</strong></em> – <em><strong>Importa</strong></em> – <em><strong>Importa (.rdm)</strong></em>.</p></div>
9. Individui il file **.rdm** salvato sul suo computer e faccia clic su ***Apri***.
10. Selezioni se desidera ***Importa nella radice***, ***Importa nella cartella corrente*** o ***Importa in una cartella specifica***.

    <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB5000.png" alt=""><figcaption></figcaption></figure>
11. Faccia clic su ***OK***.
12. Nella finestra di dialogo successiva, verrà visualizzato un elenco di tutte le voci presenti nel file di dati. Può selezionare le voci specifiche che desidera importare oppure ***Seleziona tutto*** per importare tutte le sue voci.

    <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Se ha utenti che sovrascrivono le proprietà delle voci con le <em><strong>Impostazioni specifiche dell'utente</strong></em> , deselezioni <em><strong>Modifica ID</strong></em>.</p></div>
13. Faccia clic su ***OK***.

### Esportazione/importazione con PowerShell

Il seguente script PowerShell è destinato all'esportazione di tutte le voci da uno spazio di lavoro in file **.rdm**. Verrà creato un file per ogni repository. Prima di poter esportare le voci dallo spazio di lavoro, sono necessari alcuni preparativi.

1. Installi Remote Desktop Manager sulla macchina su cui verrà eseguito lo script PowerShell.
2. Installi il [modulo Devolutions.PowerShell](https://docs.devolutions.net/powershell/it/remote-desktop-manager-powershell/devolutions.powershell-core-module#installation).
3. Crei una nuova configurazione dello spazio di lavoro in Remote Desktop Manager all'interno del profilo Windows dell'utente.
4. Imposti le autorizzazioni appropriate sulla cartella di destinazione per l'account utente che eseguirà lo script.
5. Aggiorni la password nello script.
6. Adatti il percorso di destinazione nello script in cui verranno salvati i file **.rdm**.
7. Salvi lo script PowerShell in un file **.ps1** sul computer su cui verrà eseguito.
8. Crei un'attività pianificata per eseguire lo script a intervalli regolari.

   ```powershell
   $ds = Get-RDMDataSource -Name "NameOfYourWorkspaceHere"
   Set-RDMCurrentDataSource $ds

   # Update the password
   $passwd = ConvertTo-SecureString -AsPlainText -Force "YourPasswordHere"

   $repos = Get-RDMRepository

   foreach ($repo in $repos)
   {
       Set-RDMCurrentRepository $repo
       Update-RDMUI

       $sessions = Get-RDMSession
       $reponame = $repo.name

       # Adapt the destination path for the .rdm files
       Export-RDMSession -Path "C:\temp\$reponame.rdm" -Sessions $sessions -IncludeCredentials -XML -Password $passwd
   }
   ```


---

# 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/rdm/it/knowledge-base/how-to-articles/export-and-import-entries.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.
