Require use of specific security layer for remote (RDP) connections
Nécessite l’utilisation d’une couche de sécurité spécifique pour les connexions distantes (RDP)
Explanation
This policy setting specifies whether to require the use of a specific security layer to secure communications between clients and RD Session Host servers during Remote Desktop Protocol (RDP) connections.
If you enable this policy setting, all communications between clients and RD Session Host servers during remote connections must use the security method specified in this setting. The following security methods are available:
* Negotiate: The Negotiate method enforces the most secure method that is supported by the client. If Transport Layer Security (TLS) version 1.0 is supported, it is used to authenticate the RD Session Host server. If TLS is not supported, native Remote Desktop Protocol (RDP) encryption is used to secure communications, but the RD Session Host server is not authenticated. Native RDP encryption (as opposed to SSL encryption) is not recommended.
* RDP: The RDP method uses native RDP encryption to secure communications between the client and RD Session Host server. If you select this setting, the RD Session Host server is not authenticated. Native RDP encryption (as opposed to SSL encryption) is not recommended.
* SSL (TLS 1.0): The SSL method requires the use of TLS 1.0 to authenticate the RD Session Host server. If TLS is not supported, the connection fails. This is the recommended setting for this policy.
If you disable or do not configure this policy setting, the security method to be used for remote connections to RD Session Host servers is not specified at the Group Policy level.
Ce paramètre de stratégie spécifie s'il faut requérir l'utilisation d'une couche de sécurité spécifique pour sécuriser les communications entre les clients et les serveurs Hôte de session Bureau à distance lors des connexions RDP (Remote Desktop Protocol).
Si vous activez ce paramètre de stratégie, toutes les communications entre les clients et les serveurs Hôte de session Bureau à distance doivent utiliser la méthode de sécurité spécifiée dans ce paramètre lors des connexions à distance. Les méthodes de sécurité suivantes sont disponibles :
* Négocier : la méthode Négocier applique la méthode la plus sécurisée qui est prise en charge par le client. Si TLS (Transport Layer Security) version 1.0 est pris en charge, elle est utilisée pour authentifier le serveur Hôte de session Bureau à distance. Si TLS n'est pas pris en charge, le chiffrement RDP (Remote Desktop Protocol) natif est utilisé pour sécuriser les communications, mais le serveur Hôte de session Bureau à distance n'est pas authentifié. Le chiffrement RDP natif (contrairement au chiffrement SSL) n'est pas recommandé.
* RDP : la méthode RDP utilise le chiffrement RDP natif pour sécuriser les communications entre le client et le serveur Hôte de session Bureau à distance. Si vous sélectionnez ce paramètre, le serveur Hôte de session Bureau à distance n'est pas authentifié. Le chiffrement RDP natif (contrairement au chiffrement SSL) n'est pas recommandé.
* SSL (TLS 1.0) : la méthode SSL nécessite l'utilisation de TLS 1.0 pour authentifier le serveur Hôte de session Bureau à distance. Si TLS n'est pas pris en charge, la connexion échoue. Ce paramètre est recommandé pour cette stratégie.
Si vous désactivez ce paramètre de stratégie ou si vous ne configurez pas, la méthode de sécurité à utiliser pour les connexions à distance aux serveurs Hôte de session Bureau à distance n'est pas spécifiée au niveau de la stratégie de groupe.
Use cases
Forces the security layer of RDP connections between clients and the session host: Negotiate (the most secure the client supports, falling back to native RDP encryption if TLS is unavailable), RDP (native encryption) or SSL (TLS). Only TLS authenticates the server, and native RDP encryption is not recommended.
Choosing “RDP” disables Network Level Authentication (NLA). The SSL value needs a server certificate, preferably from a trusted authority rather than self-signed, or clients will show warnings.
Microsoft source: Configure Server Authentication and Encryption Levels
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_SECURITY_LAYER_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Security Layer
# Possible options:
# RDP = 0
# Negotiate = 1
# SSL = 2
Set-ItemProperty -Path $k -Name 'SecurityLayer' -Value 1 -Type DWordDisable
# Disable: TerminalServer/TS_SECURITY_LAYER_POLICY
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_SECURITY_LAYER_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'SecurityLayer' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Security LayerCouche de sécuritéTS_SECURITY_LAYER | Drop-down listenum | SecurityLayer | REG_DWORD | Default choice (UI): #1
|