Open in the explorer

Set RD Gateway authentication method

Définir la méthode d'authentification de la passerelle des services Bureau à distance

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › RD Gateway FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Passerelle des services Bureau à distance
Supported on
At least Windows Server 2003 operating systems with SP1 or Windows XP Professional with SP2 FR: Au minimum Windows Server 2003 avec SP1 ou Windows XP Professionnel avec SP2
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_GATEWAY_POLICY_AUTH_METHOD

Explanation

Specifies the authentication method that clients must use when attempting to connect to an RD Session Host server through an RD Gateway server. You can enforce this policy setting or you can allow users to overwrite this policy setting. By default, when you enable this policy setting, it is enforced. When this policy setting is enforced, users cannot override this setting, even if they select the "Use these RD Gateway server settings" option on the client.

To allow users to overwrite this policy setting, select the "Allow users to change this setting" check box. When you do this, users can specify an alternate authentication method by configuring settings on the client, using an RDP file, or using an HTML script. If users do not specify an alternate authentication method, the authentication method that you specify in this policy setting is used by default.

If you disable or do not configure this policy setting, the authentication method that is specified by the user is used, if one is specified. If an authentication method is not specified, the Negotiate protocol that is enabled on the client or a smart card can be used for authentication.

French text from Windows 11 26H2

Spécifie la méthode d’authentification que les clients doivent utiliser lors des tentatives de connexion à un serveur Hôte de la session Bureau à distance via un serveur de passerelle Bureau à distance. Vous pouvez forcer l’application de ce paramètre de stratégie ou permettre aux utilisateurs de le remplacer. Par défaut, lorsque vous activez ce paramètre de stratégie, il est appliqué. Dans ce cas, les utilisateurs ne peuvent pas le remplacer, même en sélectionnant l’option « Utiliser ces paramètres de serveur de passerelle Bureau à distance » sur le client.

Pour permettre aux utilisateurs de remplacer ce paramètre de stratégie, activez la case à cocher « Autoriser les utilisateurs à modifier ce paramètre ». Dans ce cas, les utilisateurs peuvent spécifier une autre méthode d’authentification en configurant les paramètres sur le client, en utilisant un fichier RDP ou en recourant à un script HTML. Si les utilisateurs ne spécifient pas d’autre méthode d’authentification, celle qui est spécifiée dans ce paramètre de stratégie est utilisée par défaut.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, la méthode d’authentification spécifiée par l’utilisateur est utilisée le cas échéant. Si aucune méthode d’authentification n’est spécifiée, le protocole NTLM activé sur le client ou une carte à puce peut servir à l’authentification.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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_GATEWAY_POLICY_AUTH_METHOD
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow users to change this setting
Set-ItemProperty -Path $k -Name 'AllowExplicitLogonMethod' -Value 1 -Type DWord
# Set RD Gateway authentication method
# Possible options:
#   Ask for credentials, use Negotiate protocol = 5
#   Ask for credentials, use NTLM protocol = 2
#   Ask for credentials, use Basic protocol = 1
#   Use locally logged-on credentials = 4
#   Use smart-card = 3
Set-ItemProperty -Path $k -Name 'LogonMethod' -Value 5 -Type DWord

Disable

# Disable: TerminalServer/TS_GATEWAY_POLICY_AUTH_METHOD
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Allow users to change this settingAutoriser les utilisateurs à modifier ce paramètreTS_GATEWAY_OVERRIDECheck boxbooleanAllowExplicitLogonMethodREG_DWORD
Checked: REG_DWORD = 1
Unchecked: implicit: 0
Set RD Gateway authentication methodDéfinir la méthode d'authentification de la passerelle des services Bureau à distanceTS_GATEWAY_AUTH_MODEDrop-down listenumLogonMethodREG_DWORD
LabelValue
Ask for credentials, use Negotiate protocolREG_DWORD = 5
Ask for credentials, use NTLM protocolREG_DWORD = 2
Ask for credentials, use Basic protocolREG_DWORD = 1
Use locally logged-on credentialsREG_DWORD = 4
Use smart-cardREG_DWORD = 3

Availability