> 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/move-rdmsession.md).

# Move-RDMSession

### Sintesi

Sposta le voci nel gruppo specificato o in una nuova cassaforte.

### Sintassi

#### IdFolder

```
Move-RDMSession [-ID] <guid[]> [-Destination] <string> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### IdVault

```
Move-RDMSession [-ID] <guid[]> [-ToVaultID] <guid> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### InputObjectFolder

```
Move-RDMSession [-InputObject] <PSConnection[]> [-Destination] <string> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### InputObjectVault

```
Move-RDMSession [-InputObject] <PSConnection[]> [-ToVaultID] <guid> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### NameFolder

```
Move-RDMSession [-Name] <string[]> [-Destination] <string> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### NameVault

```
Move-RDMSession [-Name] <string[]> [-ToVaultID] <guid> [-PassThru] [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Descrizione

Sposta le voci nel gruppo specificato. Se una voce è un gruppo, verranno spostate anche tutte le voci che contiene. Per trasferire in una nuova cassaforte, è necessario utilizzarne l'ID. Se una cartella trasferita contiene una voce non trasferita, la cartella verrà copiata anziché spostata. Solo un amministratore può trasferire voci tra casseforti. Non è possibile farlo da o verso la cassaforte utente. Non è consentito spostare un gruppo padre in uno dei suoi gruppi figlio. Non è consentito avere un gruppo con un nome duplicato. In questi due casi, il gruppo non verrà spostato nella destinazione. Per ottenere le voci ricavate dall'input dell'utente che sono state effettivamente spostate, utilizzi il parametro PassThru.

### Esempi

#### Esempio 1

```powershell
PS C:\> Get-RDMSession -Name FolderToBeMoved | Move-RDMSession -Destination ""
```

Sposta il gruppo denominato FolderToBeMoved e tutte le voci che contiene nella radice

#### Esempio 2

```powershell
PS C:\> Move-RDMSession -Name EntryA, EntryB, EntryE -Destination Greener\Pastures
```

Sposta le voci EntryA, EntryB ed EntryE nel gruppo Pastures il cui padre è il gruppo Greener.

#### Esempio 3

```powershell
PS C:\> $vaultDestination = Get-RDMRepository -Name 'VaultA';
        Move-RDMSession -Name EntryA, EntryB, EntryE -ToVaultID $vaultDestination.ID
```

Sposta le voci EntryA, EntryB ed EntryE dalla cassaforte corrente alla cassaforte denominata 'VaultA'.

### Parametri

#### -Destination

Nuovo valore del gruppo. Deve essere il percorso completo della cartella. Corrisponde all'attributo Group dell'oggetto PSConnection.

```yaml
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IdFolder
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: InputObjectFolder
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: NameFolder
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Opzione da utilizzare con cautela. Risponderà 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 i valori OK e Automatic.
* No: rifiuta il prompt sì/no/annulla. "Cancel" è l'opzione di riserva se non è presente l'opzione "No".
* Cancel: annulla il prompt sì/no/annulla. "No" è l'opzione di riserva 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: ''
```

#### -ID

Specifica l'ID delle voci da spostare.

```yaml
Type: System.Guid[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IdFolder
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: IdVault
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -InputObject

Specifica le voci da spostare.

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: InputObjectFolder
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: InputObjectVault
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Name

Specifica il nome delle voci da spostare.

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

#### -PassThru

Restituisce le voci con il nuovo gruppo. Le voci contenute in un gruppo spostato non verranno restituite a meno che non siano state passate al comando. Tutte le voci non modificate non vengono restituite.

```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: ''
```

#### -Refresh

Aggiorna l'interfaccia di RDM. Se RDM non è aperto, non accade nulla.

```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: ''
```

#### -ToVaultID

ID della cassaforte in cui verranno spostate le voci. Non è possibile trasferire voci dalla cassaforte utente.

```yaml
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IdVault
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: InputObjectVault
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: NameVault
  Position: 1
  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).

### Input

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

Array di PSConnection da spostare.

### Note

Per maggiori informazioni, digiti "Get-Help Move-RDMSession -detailed". Per informazioni tecniche, digiti "Get-Help Move-RDMSession -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/move-rdmsession.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.
