Configure server authentication for client
Configurer l’authentification du serveur pour le client
Explanation
This policy setting allows you to specify whether the client will establish a connection to the RD Session Host server when the client cannot authenticate the RD Session Host server.
If you enable this policy setting, you must specify one of the following settings:
Always connect, even if authentication fails: The client connects to the RD Session Host server even if the client cannot authenticate the RD Session Host server.
Warn me if authentication fails: The client attempts to authenticate the RD Session Host server. If the RD Session Host server can be authenticated, the client establishes a connection to the RD Session Host server. If the RD Session Host server cannot be authenticated, the user is prompted to choose whether to connect to the RD Session Host server without authenticating the RD Session Host server.
Do not connect if authentication fails: The client establishes a connection to the RD Session Host server only if the RD Session Host server can be authenticated.
If you disable or do not configure this policy setting, the authentication setting that is specified in Remote Desktop Connection or in the .rdp file determines whether the client establishes a connection to the RD Session Host server when the client cannot authenticate the RD Session Host server.
Ce paramètre de stratégie permet de spécifier si le client établit une connexion au serveur Hôte de la session Bureau à distance lorsque le client ne peut pas authentifier ce dernier.
Si vous activez ce paramètre de stratégie, vous devez spécifier l’un des paramètres suivants :
Toujours se connecter, même si l’authentification échoue : le client se connecte au serveur Hôte de la session Bureau à distance, même si le client ne peut pas authentifier ce dernier.
M’avertir si l’authentification échoue : le client tente d’authentifier le serveur Hôte de la session Bureau à distance. S’il peut être authentifié, le client établit une connexion au serveur Hôte de la session Bureau à distance. S’il n’est pas possible d’authentifier le serveur Hôte de la session Bureau à distance, l’utilisateur peut choisir de s’y connecter sans l’authentifier.
Ne pas se connecter si l’authentification échoue : le client établit une connexion au serveur Hôte de la session Bureau à distance uniquement si ce dernier peut être authentifié.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le paramètre d’authentification spécifié dans Connexion Bureau à distance ou dans le fichier .rdp détermine si le client établit une connexion au serveur Hôte de la session Bureau à distance lorsqu’il ne peut pas authentifier ce dernier.
Registry
HKEY_LOCAL_MACHINE\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_SERVER_AUTH
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Authentication setting
# Possible options:
# Always connect, even if authentication fails = 0
# Warn me if authentication fails = 2
# Do not connect if authentication fails = 1
Set-ItemProperty -Path $k -Name 'AuthenticationLevel' -Value 0 -Type DWordDisable
# Disable: TerminalServer/TS_SERVER_AUTH
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_SERVER_AUTH
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'AuthenticationLevel' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Authentication setting:Paramètre d’authentification :TS_SERVER_AUTH_LEVEL | Drop-down listenum | AuthenticationLevel | REG_DWORD | Default choice (UI): #0
|