> 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/es/powershell-commands/set-dsaddinrootpermission.md).

# Set-DSAddInRootPermission

### Sinopsis

Modificar el permiso 'Add in root'

### Sintaxis

#### \_\_AllParameterSets

```
Set-DSAddInRootPermission [-ID] <guid> [-Override] <SecurityRoleOverride> [[-UserIDs] <guid[]>]
 [-WhatIf] [-Confirm] [<CommonParameters>]
```

### Descripción

Modificar el permiso 'Add in root'. Solo se puede usar en una raíz. Si la anulación del permiso de la raíz es 'Never', se cambiará a 'Default'.

### Ejemplos

```powershell
PS C:\> $userIds = Get-DSUsers -All | Where Name -like *@domain.loc | Select -ExpandProperty ID
PS C:\> $userGroupIds = Get-DSRole -All | Where Name -eq UserGroupA | Select -ExpandProperty ID
PS C:\> $ids = $userIds + $userGroupIds
PS C:\> Set-DSAddInRootPermission -ID $rootID -Override CustomInherited -UserIDs $ids
```

Conceder el derecho de añadir en la raíz a los usuarios cuyos nombres de usuario terminan en '@domain.loc' y al grupo de usuarios UserGroupA. Los usuarios y grupos de usuarios de los permisos predeterminados deben conservar este derecho.

### Parámetros

#### -Confirm

Le solicita confirmación antes de ejecutar el 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: ''
```

#### -ID

ID de la raíz

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

#### -Override

Determina cómo se resuelve el permiso 'Add In Root'. Hay cinco opciones disponibles: Default => Usar el valor predeterminado de la configuración. Custom => Especificar quién puede añadir en la raíz. Everyone => Igual que Allowed en la interfaz de usuario. Todos pueden añadir en la raíz. Never => Igual que Disallowed en la interfaz de usuario. Solo los administradores pueden añadir en la raíz. CustomInherited => Una combinación de Default y Custom. Añadir usuarios a los predeterminados que pueden añadir en la raíz.

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

#### -UserIDs

Ids de usuarios, grupos de usuarios y aplicaciones a los que se concederá el derecho de añadir en la raíz.

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

#### -WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

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

Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction y -WarningVariable. Para más información, consulte [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Notas

Para más información, escriba "Get-Help Set-DSAddInRootPermission -detailed". Para información técnica, escriba "Get-Help Set-DSAddInRootPermission -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/es/powershell-commands/set-dsaddinrootpermission.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.
