> 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/rdm/es/knowledge-base/troubleshooting-articles/rdp-nla-with-entra-id-pku2u-issue.md).

# RDP NLA con Entra ID (problema de PKU2U)

Corrija el error de credenciales de RDP NLA que no funcionan con Entra ID habilitando el protocolo PKU2U tanto en el cliente como en el servidor RDP.

Al conectarse a sistemas mediante RDP con Entra ID, los usuarios suelen encontrarse con el error "Sus credenciales no funcionaron". Este problema se debe al protocolo PKU2U, que no está habilitado por defecto en Windows.

### Solución 1: deshabilitar RDP NLA

Deshabilitar RDP NLA puede resolver el problema, pero no se recomienda por motivos de seguridad.

### Solución 2: hacer que RDP NLA funcione con Entra ID (recomendado)

Deben cumplirse algunos requisitos para que RDP NLA funcione con Entra ID. Es la solución recomendada, aunque el proceso sea más complejo.

#### PKU2U en el cliente y el servidor RDP

PKU2U debe estar habilitado tanto en el cliente como en el servidor RDP. Utilice uno de los métodos siguientes.

**Método de directiva de grupo**

1. Abra el Editor de directivas de grupo (gpedit.msc).
2. Vaya a ***Configuración del equipo – Configuración de Windows – Configuración de seguridad – Directivas locales – Opciones de seguridad***.
3. Habilite ***Seguridad de red: permitir que las solicitudes de autenticación PKU2U a este equipo usen identidades en línea***.
4. Reinicie el servidor.

**Método de PowerShell**

1. En PowerShell, ejecute el siguiente comando:

   ```powershell
   $Pku2uRegPath = 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Pku2u'
   New-Item -Path $Pku2uRegPath -Force | Out-Null
   Set-ItemProperty -Path $Pku2uRegPath -Name 'AllowOnlineID' -Value '1' -Type DWORD
   ```
2. Reinicie el servidor.

#### Inicio de sesión de Windows

Debe haber iniciado sesión en Windows con la misma cuenta de Entra ID o estar unido al lugar de trabajo con el mismo usuario de Entra ID. Tenga en cuenta que solo puede estar unido al lugar de trabajo con un máximo de tres usuarios al mismo tiempo.

1. En su máquina Windows, vaya a ***Configuración – Cuentas – Correo electrónico y cuentas***.
2. Haga clic en ***Agregar una cuenta profesional o educativa***.
3. Introduzca sus credenciales de Entra ID y, a continuación, haga clic en ***Iniciar sesión***.
4. Espere a que se complete la unión al lugar de trabajo de Entra ID.

#### Formato de nombre de usuario correcto

* En MSTSC: utilice el formato "EntraID\\<user@domain.com>".
* En un fichero RDP: utilice el formato ".\EntraID\\<user@domain.com>" y deje el dominio vacío.
* En Remote Desktop Manager: habilite la opción ***Host de Entra ID*** en las propiedades generales de la entrada RDP.

{% hint style="info" %}
Consulte el artículo completo para obtener más información: [RDP NLA with Entra ID: The PKU2U Nightmare](https://awakecoding.com/posts/rdp-nla-with-azure-ad-the-pku2u-nightmare/).
{% endhint %}

#### Véase también

* [RDP NLA with Azure AD: The PKU2U Nightmare](https://awakecoding.com/posts/rdp-nla-with-azure-ad-the-pku2u-nightmare/)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/es/knowledge-base/troubleshooting-articles/rdp-nla-with-entra-id-pku2u-issue.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
