> 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-rdmprivatesessiondomain.md).

# Set-RDMPrivateSessionDomain

### Sinossi

Imposta il dominio dalla sessione specificata.

### Sintassi

#### Id

```
Set-RDMPrivateSessionDomain [-ID] <guid> [-Domain] <string> [-PassThru] [-Refresh] [-SetSession]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

#### InputObject

```
Set-RDMPrivateSessionDomain [-Session] <PSConnection> [-Domain] <string> [-PassThru] [-Refresh]
 [-SetSession] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
```

### Descrizione

Imposta il dominio dalla sessione specificata. Per rendere persistente il nuovo dominio, è necessario utilizzare lo switch SetSession.

### Esempi

#### Esempio 1

```powershell
PS C:\> Set-RDMUserVaultSessionDomain "{00000000-0000-0000-0000-000000000000}" "MyOtherDomain.com" -SetSession
```

Imposta il dominio dalla sessione con ID = "{00000000-0000-0000-0000-000000000000}".

#### Esempio 2

```powershell
PS C:\> $list = Get-RDMUserVaultSession; Set-RDMSessionDomain -ID $list[1].ID -Domain "MyOtherDomain.com" -SetSession -Refresh
```

Recupera l'elenco delle sessioni disponibili e imposta il dominio dal secondo elemento dell'elenco con aggiornamento dell'interfaccia utente.

#### Esempio 3

```powershell
PS C:\> Get-RDMUserVaultSession -Name 'UniqueName' |
                    Set-RDMUserVaultSessionDomain -Domain "MyOtherDomain.com" -PassThru |
                    Set-RDMUserVaultSessionPassword -Password $securePassword -PassThru |
                    Set-RDMUserVaultSessionUsername -UserName 'NewUserName' -PassThru |
                    Set-RDMUserVaultSession
```

Modifica il dominio, la password e il nome utente della voce denominata 'UniqueName'. La variabile $securePassword è una secure string impostata in precedenza. Rende persistente la modifica con la chiamata Set-RDMUserVaultSession.

### Parametri

#### -Domain

Nuovo nome di dominio.

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

#### -ForcePromptAnswer

Switch da utilizzare 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. Di seguito i valori accettati:

* Yes: Accetta il prompt. Copre i valori 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: ''
```

#### -ID

Specifica l'ID della sessione da cui ottenere il dominio.

Deve essere un GUID valido, nella forma {00000000-0000-0000-0000-000000000000}.

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

#### -PassThru

Restituisce la voce modificata.

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

Invia la notifica di aggiornamento all'applicazione Remote Desktop Manager.

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

#### -Session

Specifica la sessione a cui impostare il dominio.

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

#### -SetSession

Salva la sessione nello spazio di lavoro corrente.

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

#### 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).

### Output

### Note

Per maggiori informazioni, digiti "Get-Help Set-RDMPrivateSessionDomain -detailed". Per informazioni tecniche, digiti "Get-Help Set-RDMPrivateSessionDomain -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-rdmprivatesessiondomain.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.
