Open in the explorer

Server authentication certificate template

Modèle de certificat d’authentification serveur

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Sécurité
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_CERTIFICATE_TEMPLATE_POLICY

Explanation

This policy setting allows you to specify the name of the certificate template that determines which certificate is automatically selected to authenticate an RD Session Host server.

A certificate is needed to authenticate an RD Session Host server when TLS 1.0, 1.1 or 1.2 is used to secure communication between a client and an RD Session Host server during RDP connections.

If you enable this policy setting, you need to specify a certificate template name. Only certificates created by using the specified certificate template will be considered when a certificate to authenticate the RD Session Host server is automatically selected. Automatic certificate selection only occurs when a specific certificate has not been selected.

If no certificate can be found that was created with the specified certificate template, the RD Session Host server will issue a certificate enrollment request and will use the current certificate until the request is completed. If more than one certificate is found that was created with the specified certificate template, the certificate that will expire latest and that matches the current name of the RD Session Host server will be selected.

If you disable or do not configure this policy, the certificate template name is not specified at the Group Policy level. By default, a self-signed certificate is used to authenticate the RD Session Host server.

Note: If you select a specific certificate to be used to authenticate the RD Session Host server, that certificate will take precedence over this policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier le nom du modèle de certificat qui détermine quel certificat est sélectionné automatiquement pour authentifier un serveur Hôte de session Bureau à distance.

Un certificat est nécessaire pour authentifier un serveur Hôte de session Bureau à distance lorsque TLS 1.0, 1.1 ou 1.2 est utilisé pour sécuriser les communications entre un client et un serveur Hôte de session Bureau à distance pendant des connexions RDP (Remote Desktop Protocol).

Si ce paramètre de stratégie est activé, vous devez spécifier un nom de modèle de certificat. Seuls les certificats créés à l'aide du modèle de certificat spécifié sont pris en compte lors de la sélection automatique d'un certificat pour authentifier le serveur Hôte de session Bureau à distance. Un certificat est sélectionné automatiquement uniquement si aucun certificat n'a été spécifié.

S'il n'existe aucun certificat créé à l'aide du modèle de certificat spécifié, le serveur Hôte de session Bureau à distance émet une demande d'inscription de certificat et utilise le certificat actif jusqu'à ce que la demande soit traitée. S'il existe plusieurs certificats créés à l'aide du modèle de certificat spécifié, le certificat dont la date d'expiration est la plus éloignée et qui correspond au nom actuel du serveur Hôte de session Bureau à distance est sélectionné.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le nom du modèle de certificat n'est pas spécifié au niveau de la stratégie de groupe. Par défaut, un certificat auto-signé est utilisé pour authentifier le serveur Hôte de session Bureau à distance.

Remarque : si vous sélectionnez un certificat à utiliser pour authentifier le serveur Hôte de session Bureau à distance, ce certificat est prioritaire sur ce paramètre de stratégie.

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_CERTIFICATE_TEMPLATE_POLICY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Certificate Template Name
Set-ItemProperty -Path $k -Name 'CertTemplateName' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Certificate Template NameNom du modèle de certificatTS_CERTIFICATE_TEMPLATE_NAMEText boxtextCertTemplateNameREG_SZ
Required

Availability