> 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/set-rdmplaylistshared.md).

# Set-RDMPlaylistShared

### Sintesi

Salva una playlist condivisa nello spazio di lavoro corrente.

### Sintassi

#### \_\_AllParameterSets

```
Set-RDMPlaylistShared [-Playlist] <PSPlaylistShared> [[-Connections] <PSConnection[]>]
 [-ImportConnection] [-PrivateVault] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
 [<CommonParameters>]
```

### Descrizione

Salva una playlist condivisa nello spazio di lavoro corrente. Può essere salvata come playlist utente con lo switch 'PrivateVault'. Per aggiungere una connessione alla playlist, usi il parametro 'Connection' oppure modifichi direttamente la lista. Per rimuovere connessioni dalla playlist, l'operazione deve essere eseguita direttamente dalla lista. Consulti gli esempi per maggiori informazioni. Lo switch 'ImportConnection' salverà tutte le modifiche apportate alle connessioni contenute nella playlist. Tali connessioni sono memorizzate nella proprietà 'Connections' della playlist. Si tratta di una scorciatoia per modificare le connessioni contenute nella playlist.

### Esempi

#### Esempio 1

```powershell
PS C:\> $playlist = Get-RDMPlaylistShared | Where-Object { $_.ConnectionPlayList.Name -eq 'MyPlaylist' }
PS C:\> $playlist.ConnectionPlayList.Remove('12345678-1234-1234-123456781234')
PS C:\> $newItem = @{
         ConnectionID = '12341234-1234-1234-1234-123412345678'
         GroupMain = 'My\Group'
         }
PS C:\> $null = $playlist.ConnectionPlayList.Add($newItem)
PS C:\> Set-RDMPlaylistShared -Playlist $playlist
```

Gestisca le connessioni della playlist aggiungendone una nuova e rimuovendone una vecchia direttamente nella lista.

#### Esempio 2

```powershell
PS C:\> $playlist = Get-RDMPlaylistShared | Where-Object { $_.ConnectionPlayList.Name -eq 'MyPlaylist' }
PS C:\> $connection = Get-RDMEntry -Name 'ConnectionToAddInPlaylist'
PS C:\> Set-RDMPlaylistShared -Playlist $playlist -Connection $connection
```

Aggiunga una connessione alla playlist usando il parametro 'Connection'.

#### Esempio 3

```powershell
PS C:\> $playlist = Get-RDMPlaylistShared -ExportConnections | Where-Object { $_.ConnectionPlayList.Name -eq 'MyPlaylist' }
PS C:\> $playlist.Connections | ForEach-Object { $_.Description = "Part of $($playlist.ConnectionPlayList.Name)" }
PS C:\> Set-RDMPlaylistShared -Playlist $playlist -ImportConnection
```

Aggiunga una descrizione a tutte le connessioni contenute nella playlist.

### Parametri

#### -Confirm

Richiede una conferma prima di eseguire il cmdlet.

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

#### -Connections

Connessioni da aggiungere alla playlist.

```yaml
Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Switch da usare con cautela. Risponderà automaticamente ai prompt che pongono domande sì/no, sì/no/annulla oppure ok/annulla. In caso di prompt multipli, è 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: ''
```

#### -ImportConnection

Importa nello spazio di lavoro le connessioni della playlist, memorizzate nella proprietà Connections della playlist indicata.

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

#### -Playlist

Specifica la playlist condivisa da impostare/salvare.

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

#### -PrivateVault

Salva la playlist condivisa nella cassaforte privata.

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

#### -WhatIf

Mostra cosa accadrebbe se il cmdlet venisse eseguito. Il cmdlet non viene eseguito.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  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, consulti [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Note

Per maggiori informazioni, digiti "Get-Help Set-RDMPlaylistShared -detailed". Per informazioni tecniche, digiti "Get-Help Set-RDMPlaylistShared -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/set-rdmplaylistshared.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.
