Configurer l’authentification du serveur pour le client : valeur de Registre AuthenticationLevelOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID de stratégie
TS_SERVER_AUTH
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows Vista avec Service Pack 1
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Services Bureau à distance › Client Connexion Bureau à distance

Registre

AuthenticationLevel

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Paramètre d’authentification :
Options
EntréeValeur stockée
Toujours connecter, même si l’authentification échoue0
M’avertir si l’authentification échoue2
Ne pas connecter si l’authentification échoue1
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (en utiliser une seule)
; Toujours connecter, même si l’authentification échoue
"AuthenticationLevel"=dword:00000000
; M’avertir si l’authentification échoue
"AuthenticationLevel"=dword:00000002
; Ne pas connecter si l’authentification échoue
"AuthenticationLevel"=dword:00000001
CMD
:: Options (en utiliser une seule)

:: Toujours connecter, même si l’authentification échoue
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 0 /f
:: M’avertir si l’authentification échoue
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 2 /f
:: Ne pas connecter si l’authentification échoue
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (en utiliser une seule)
# Toujours connecter, même si l’authentification échoue
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 0 -Force | Out-Null
# M’avertir si l’authentification échoue
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 2 -Force | Out-Null
# Ne pas connecter si l’authentification échoue
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 1 -Force | Out-Null