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

# Set-RDMEntryOTP

### Sinopsis

Establecer las propiedades OTP de una entrada

### Sintaxis

#### Id

```
Set-RDMEntryOTP [-ID] <guid> [-Key] <PSPassword> [-Account <string>] [-Application <string>]
 [-CodeSize <OTPCodeSize>] [-PasswordListItemID <guid>] [-TimeStep <int>]
 [-HashAlgorithm <OTPHashAlgorithm>] [-PassThru] [-Refresh] [-Set] [-VaultMode <VaultMode>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

#### InputObject

```
Set-RDMEntryOTP [-InputObject] <PSConnection> [-Key] <PSPassword> [-Account <string>]
 [-Application <string>] [-CodeSize <OTPCodeSize>] [-PasswordListItemID <guid>] [-TimeStep <int>]
 [-HashAlgorithm <OTPHashAlgorithm>] [-PassThru] [-Refresh] [-Set]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### Descripción

Establecer las propiedades OTP de una entrada. La entrada que se va a modificar puede obtenerse mediante Get-RDMEntry o New-RDMEntry. Para modificar la entrada OTP, el usuario debe tener los derechos adecuados: añadir para una nueva entrada y editar para una existente.

### Ejemplos

#### Ejemplo 1

```powershell
PS C:\> $otp = Get-RDMEntry -Name MyOTPEntry;
PS C:\> $key = ConvertTo-SecureString -AsPlainText -String 'MyKey';
PS C:\> Set-RDMEntryOTP -InputObject $otp -Key $key -Timestep 60 -Set
```

Actualizar la clave OTP y cambiar la frecuencia de actualización del código a 60 segundos. Los cambios se guardan.

#### Ejemplo 2

```powershell
PS C:\> $passwordList = Get-RDMEntry -Name 'MyPasswordList';
PS C:\> $key = ConvertTo-SecureString -AsPlainText -String '12345678';
PS C:\> $listItemID = $passwordList.Credentials.PasswordList | Where-Object -Property Name -eq -Value 'My item name' | Select-Object -ExpandProperty Id
PS C:\> Set-RDMEntryOTP -InputObject $passwordList -PasswordListItemId $listItemID -Key $key -Timestep 60 -Set
```

Actualizar la clave OTP y cambiar la frecuencia de actualización del código a 60 segundos de una contraseña en una lista de contraseñas. Los cambios se guardan.

### Parámetros

#### -Account

Nombre de la cuenta asociada al OTP

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

#### -Application

Nombre de la aplicación del código QR

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

#### -CodeSize

Tamaño del código OTP. Debe ser de 6 u 8 dígitos.

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

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

#### -ForcePromptAnswer

Conmutador que debe usarse con precaución. Responderá automáticamente a las solicitudes que planteen preguntas de sí/no, sí/no/cancelar u ok/cancelar. En caso de múltiples solicitudes, se pueden pasar varios valores a este parámetro. Estos son los valores aceptados:

* Yes: Aceptar la solicitud. Cubre el valor OK y Automatic.
* No: Rechazar la solicitud sí/no/cancelar. «Cancel» es la opción alternativa si no existe la opción «No».
* Cancel: Cancelar la solicitud sí/no/cancelar. «No» es la opción alternativa si no existe la opción «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: ''
```

#### -HashAlgorithm

Algoritmo utilizado para aplicar el hash al código.

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

#### -ID

ID de la entrada que se va a modificar. Use el parámetro VaultMode para buscar en la bóveda de usuario o en la bóveda global.

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

#### -InputObject

Entrada de credencial cuyo valor OTP debe actualizarse.

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

#### -Key

Clave utilizada para generar el código OTP.

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

#### -PassThru

Devolver la entrada modificada.

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

#### -PasswordListItemID

Para la lista de contraseñas, el ID del elemento que se va a resolver.

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

#### -Refresh

Enviar una notificación de actualización a la aplicación Remote Desktop Manager. Use el conmutador Set para que la modificación sea persistente.

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

#### -Set

Guardar la entrada en el espacio de trabajo actual.

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

#### -TimeStep

Frecuencia de actualización, en segundos, del OTP.

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

#### -VaultMode

Bóveda en la que se aplicará el comando. Se ofrecen tres opciones: - Default: bóveda actual que se ha establecido. - User: bóveda específica del usuario actual. - Global: bóveda global del espacio de trabajo.

```yaml
Type: Devolutions.RemoteDesktopManager.VaultMode
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Id
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -WhatIf

Muestra lo que ocurrirí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).

### Entradas

#### RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

Objeto PSConnection de la entrada OTP obtenido de Get-RDMEntry

### Notas

Para más información, escriba «Get-Help Set-RDMEntryOTP -detailed». Para información técnica, escriba «Get-Help Set-RDMEntryOTP -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-rdmentryotp.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.
