> 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/new-rdmconnectionpermission.md).

# New-RDMConnectionPermission

### Sinossi

Crea un nuovo oggetto di autorizzazione della connessione.

### Sintassi

#### \_\_AllParameterSets

```
New-RDMConnectionPermission [-Right] <SecurityRoleRight[]> [-Override] <SecurityRoleOverride>
 [[-PrincipalId] <guid[]>] [<CommonParameters>]
```

### Descrizione

Crea in memoria un oggetto di autorizzazione della connessione. Assegni il risultato a una variabile da utilizzare in New-DSPamAccount o Set-RDMSession.

### Esempi

```powershell
PS C:\> $PrincipalId = "69ed61d2-5509-4afc-bb12-0054d0a851b3"
PS C:\> $Permission = New-RDMConnectionPermission -Right Edit -RoleId $PrincipalId -Override Custom
```

Crea un oggetto di autorizzazione che concede il diritto 'Edit' all'ID principal specificato con un override 'Custom'.

### Parametri

#### -Override

Definisce come vengono determinate le autorizzazioni. Sono disponibili cinque modalità: Custom: specifica un valore personalizzato per l'autorizzazione. Solo gli utenti, i gruppi di utenti e le applicazioni specificati avranno l'autorizzazione. CustomInherited: combinazione di Inherited e Custom. Aggiunge altri utenti, gruppi di utenti e applicazioni a quelli ereditati. Everyone: equivale a Allowed nell'interfaccia utente. L'autorizzazione è concessa a tutti. Inherited: eredita l'autorizzazione dall'elemento padre Never: equivale a Disallowed nell'interfaccia utente. L'autorizzazione non è concessa a nessuno tranne che agli amministratori

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

#### -PrincipalId

Per gli override Custom e CustomInherited, gli ID dei principal (utente, gruppo di utenti, identità dell'applicazione) (come GUID) a cui assegnare il diritto.

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

#### -Right

Il diritto da assegnare (ad es. View, Execute, ViewPassword, ecc.).

```yaml
Type: Devolutions.RemoteDesktopManager.SecurityRoleRight[]
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, consulti [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Note

Per maggiori informazioni, digiti "Get-Help New-RDMConnectionPermission -detailed". Per informazioni tecniche, digiti "Get-Help New-RDMConnectionPermission -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/new-rdmconnectionpermission.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.
