> 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/powershell-commands/import-rdmrepository.md).

# Import-RDMRepository

### Sinossi

Importa le casseforti contenute in un file rdx nello spazio di lavoro corrente.

### Sintassi

#### \_\_AllParameterSets

```
Import-RDMRepository [-Path] <string> [-Password <securestring>] [-Duplicate <DuplicateAction>]
 [-KeepID] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Descrizione

Importa le casseforti contenute in un file rdx nello spazio di lavoro corrente. Se il file è protetto, è necessario utilizzare il parametro Password per sbloccare i dati contenuti. Per impostazione predefinita, l'ID di tutte le voci verrà modificato. Ciò serve a evitare comportamenti indesiderati, come lo spostamento di una voce se importata nello stesso database. Il parametro Duplicate indica l'azione (ignora, sovrascrivi, aggiungi) da applicare in presenza di voci duplicate. Un limite del comando è l'impossibilità di mappare le casseforti importate su una specifica. Ogni cassaforte verrà assegnata a una esistente con lo stesso ID o lo stesso nome, oppure a una nuova se non ne viene trovata alcuna. Questo comando è disponibile solo per gli amministratori negli spazi di lavoro avanzati. Poiché un'identità applicativa in uno spazio di lavoro Devolutions Cloud non può disporre di privilegi di amministratore, le sue capacità sono più limitate. Deve disporre dei diritti appropriati (Add Entries, Create Vault).

### Esempi

#### Esempio 1

```powershell
PS C:\> $pwd = Read-Host -AsSecureString;
    Import-RDMRepository -Path myFile.rdx -Password $pwd
```

Importa tutte le casseforti in 'myFile.rdx'. Il file protetto viene sbloccato con il parametro $pwd.

#### Esempio 2

```powershell
PS C:\> $filePath = 'C:\my\path\filename.rdx';
    Export-RDMRepository -Name VaultA, VaultB, VaultC -Path $path -IncludeAttachments -IncludeCredentials -IncludeDocumentation;
    Get-RDMDataSource -Name AnotherOne | Set-RDMCurrentDataSource;
    Import-RDMSession -Path myFile.rdx -KeepID -Duplicate IgnoreAll
```

Esporta VaultA, VaultB e VaultC dello spazio di lavoro corrente nel file specificato da $path. Cambia lo spazio di lavoro corrente in 'AnotherOne' e importa tutte le casseforti esportate di recente. Con lo switch KeepID presente, tutte le voci importate manterranno il proprio ID. Finché il nuovo spazio di lavoro non utilizza lo stesso database, non si verificheranno comportamenti imprevisti.

### Parametri

#### -Duplicate

Azione da applicare alle voci importate in caso di duplicato. Se lo switch KeepID non è presente, non verrà trovato alcun duplicato. Per impostazione predefinita, tutti i duplicati verranno ignorati.

```yaml
Type: Devolutions.RemoteDesktopManager.DuplicateAction
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Switch da usare con cautela. Risponde automaticamente ai prompt che pongono domande sì/no, sì/no/annulla oppure ok/annulla. In caso di più prompt, è possibile passare più valori a questo parametro. Ecco i valori accettati:

* Yes: accetta il prompt. Copre il valore OK e Automatic.
* No: rifiuta il prompt sì/no/annulla. "Cancel" è l'opzione di ripiego se non è presente l'opzione "No".
* Cancel: annulla il prompt sì/no/annulla. "No" è l'opzione di ripiego se non è presente l'opzione "Cancel".

```yaml
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -KeepID

Mantiene l'ID di tutte le connessioni importate. Ciò può causare comportamenti indesiderati, come lo spostamento di una voce se importata nello stesso database.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Password

Sblocca i dati contenuti nel file protetto.

```yaml
Type: System.Security.SecureString
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Path

Percorso in cui verrà salvato il file contenente le casseforti esportate. L'estensione deve essere '.rdx'.

```yaml
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Per maggiori informazioni, veda [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Note

Per maggiori informazioni, digiti "Get-Help Import-RDMRepository -detailed". Per informazioni tecniche, digiti "Get-Help Import-RDMRepository -full".


---

# 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/powershell-commands/import-rdmrepository.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.
