Open in the explorer

Require user authentication for remote connections by using Network Level Authentication

Requérir l’authentification utilisateur pour les connexions à distance à l’aide de l’authentification au niveau du réseau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Sécurité
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_USER_AUTHENTICATION_POLICY

Explanation

This policy setting allows you to specify whether to require user authentication for remote connections to the RD Session Host server by using Network Level Authentication. This policy setting enhances security by requiring that user authentication occur earlier in the remote connection process.

If you enable this policy setting, only client computers that support Network Level Authentication can connect to the RD Session Host server.

To determine whether a client computer supports Network Level Authentication, start Remote Desktop Connection on the client computer, click the icon in the upper-left corner of the Remote Desktop Connection dialog box, and then click About. In the About Remote Desktop Connection dialog box, look for the phrase Network Level Authentication supported.

If you disable this policy setting, Network Level Authentication is not required for user authentication before allowing remote connections to the RD Session Host server.

If you do not configure this policy setting, the local setting on the target computer will be enforced. On Windows Server 2012 and Windows 8, Network Level Authentication is enforced by default.

Important: Disabling this policy setting provides less security because user authentication will occur later in the remote connection process.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de spécifier s’il faut requérir l’authentification utilisateur pour les connexions à distance au serveur Hôte de session Bureau à distance en utilisant l’authentification au niveau du réseau. Ce paramètre de stratégie renforce la sécurité en imposant l’authentification utilisateur plus tôt dans le processus de connexion à distance.

Si vous activez ce paramètre de stratégie, seuls les ordinateurs client qui prennent en charge l’authentification au niveau du réseau peuvent se connecter au serveur Hôte de session Bureau à distance.

Pour déterminer si un ordinateur client prend en charge l’authentification au niveau du réseau, démarrez Connexion Bureau à distance sur l’ordinateur client, cliquez sur l’icône dans le coin supérieur gauche de la boîte de dialogue Connexion Bureau à distance, puis cliquez sur À propos de. Dans la boîte de dialogue À propos de la Connexion Bureau à distance, recherchez l’expression Authentification au niveau du réseau prise en charge.

Si vous désactivez ce paramètre de stratégie, l’authentification au niveau du réseau n’est pas nécessaire pour l’authentification des utilisateurs avant d’autoriser les connexions distantes au serveur Hôte de la session Bureau à distance.

Si vous ne configurez pas ce paramètre de stratégie, le paramètre local sur l’ordinateur cible sera appliqué. Sur Windows Server 2012 et Windows 8, l’authentification au niveau du réseau est appliquée par défaut.

Important : le fait de désactiver ce paramètre de stratégie offre moins de sécurité, car l’authentification utilisateur est effectuée plus tard dans le processus de connexion à distance.

Use cases

Requires Network Level Authentication (NLA) for Remote Desktop connections: the user is authenticated before the session starts, so before the sign-in screen is shown. The server uses fewer resources before authentication, which reduces exposure to denial of service and to attacks on an exposed RDP sign-in screen.

The GPO takes precedence over the local Remote tab setting. Clients must support CredSSP, which modern Windows versions do.

Microsoft source: Configure Network Level Authentication for Remote Desktop Services Connections

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
UserAuthentication
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: TerminalServer/TS_USER_AUTHENTICATION_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UserAuthentication' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_USER_AUTHENTICATION_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UserAuthentication' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_USER_AUTHENTICATION_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'UserAuthentication' -ErrorAction SilentlyContinue

Availability