Définir la méthode d'authentification de la passerelle des services Bureau à distance : valeur de Registre AllowExplicitLogonMethod et 1 autresUtilisateurHKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID de stratégie
TS_GATEWAY_POLICY_AUTH_METHOD
Étendue
Configuration utilisateur
Pris en charge sur
Au minimum Windows Server 2003 avec SP1 ou Windows XP Professionnel avec SP2
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Services Bureau à distance › Passerelle des services Bureau à distance

Registre

AllowExplicitLogonMethod

REG_DWORDUtilisateur
Cochée
1
Élément
Autoriser les utilisateurs à modifier ce paramètre
Type de valeur
REG_DWORD
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; Options (en utiliser une seule)
; Cochée
"AllowExplicitLogonMethod"=dword:00000001
CMD
:: Options (en utiliser une seule)

:: Cochée
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AllowExplicitLogonMethod" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (en utiliser une seule)
# Cochée
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AllowExplicitLogonMethod' -PropertyType DWord -Value 1 -Force | Out-Null

LogonMethod

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Définir la méthode d'authentification de la passerelle des services Bureau à distance
Options
EntréeValeur stockée
Demander des informations d’identification, utiliser le protocole Negociate5
Demander des informations d'identification, utiliser le protocole NTLM2
Demander des informations d'identification, utiliser le protocole de base1
Utiliser les informations d'identification de la connexion locale4
Utiliser une carte à puce3
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; Options (en utiliser une seule)
; Demander des informations d’identification, utiliser le protocole Negociate
"LogonMethod"=dword:00000005
; Demander des informations d'identification, utiliser le protocole NTLM
"LogonMethod"=dword:00000002
; Demander des informations d'identification, utiliser le protocole de base
"LogonMethod"=dword:00000001
; Utiliser les informations d'identification de la connexion locale
"LogonMethod"=dword:00000004
; Utiliser une carte à puce
"LogonMethod"=dword:00000003
CMD
:: Options (en utiliser une seule)

:: Demander des informations d’identification, utiliser le protocole Negociate
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LogonMethod" /t REG_DWORD /d 5 /f
:: Demander des informations d'identification, utiliser le protocole NTLM
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LogonMethod" /t REG_DWORD /d 2 /f
:: Demander des informations d'identification, utiliser le protocole de base
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LogonMethod" /t REG_DWORD /d 1 /f
:: Utiliser les informations d'identification de la connexion locale
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LogonMethod" /t REG_DWORD /d 4 /f
:: Utiliser une carte à puce
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LogonMethod" /t REG_DWORD /d 3 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (en utiliser une seule)
# Demander des informations d’identification, utiliser le protocole Negociate
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LogonMethod' -PropertyType DWord -Value 5 -Force | Out-Null
# Demander des informations d'identification, utiliser le protocole NTLM
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LogonMethod' -PropertyType DWord -Value 2 -Force | Out-Null
# Demander des informations d'identification, utiliser le protocole de base
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LogonMethod' -PropertyType DWord -Value 1 -Force | Out-Null
# Utiliser les informations d'identification de la connexion locale
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LogonMethod' -PropertyType DWord -Value 4 -Force | Out-Null
# Utiliser une carte à puce
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LogonMethod' -PropertyType DWord -Value 3 -Force | Out-Null