Open in the explorer

Support device authentication using certificate

Prise en charde de l'authentification de périphérique à l'aide de certificats

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Kerberos FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Kerberos
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
Kerberos.admx
Internal name
Kerberos/DevicePKInitEnabled

Explanation

Support for device authentication using certificate will require connectivity to a DC in the device account domain which supports certificate authentication for computer accounts.

This policy setting allows you to set support for Kerberos to attempt authentication using the certificate for the device to the domain.

If you enable this policy setting, the device’s credentials will be selected based on the following options:

Automatic: Device will attempt to authenticate using its certificate. If the DC does not support computer account authentication using certificates then authentication with password will be attempted.

Force: Device will always authenticate using its certificate. If a DC cannot be found which support computer account authentication using certificates then authentication will fail.

If you disable this policy setting, certificates will never be used.
If you do not configure this policy setting, Automatic will be used.

Follow this guide to configure enterprise PKI: https://go.microsoft.com/fwlink/?linkid=2340158

French text from Windows 11 26H2

La prise en charge de l’authentification de l’appareil à l’aide d’un certificat nécessite une connectivité à un contrôleur de domaine dans le domaine de comptes de l’appareil qui prend en charge l’authentification par certificat pour les comptes d’ordinateurs.

Ce paramètre de stratégie vous permet de définir la prise en charge de Kerberos pour tenter l’authentification à l’aide du certificat de l’appareil sur le domaine.

Si vous activez ce paramètre de stratégie, les informations d’identification de l’appareil sont sélectionnées en fonction des options suivantes :

Automatique : l’appareil tente de s’authentifier à l’aide de son certificat. Si le contrôleur de domaine ne prend pas en charge l’authentification de compte d’ordinateur à l’aide de certificats, vous devez tenter alors l’authentification par mot de passe.

Forcée : l’appareil s’authentifie toujours à l’aide de son certificat. Si aucun contrôleur de domaine prenant en charge l’authentification de compte d’ordinateur à l’aide de certificats n’est trouvé, l’authentification échoue.

Si vous désactivez ce paramètre de stratégie, les certificats ne seront jamais utilisés.
Si vous ne configurez pas ce paramètre de stratégie, le mode Automatique sera utilisé.

Suivez ce guide pour configurer l’infrastructure à clé publique d’entreprise : https://go.microsoft.com/fwlink/?linkid=2340158

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters
Value name
DevicePKInitEnabled
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: Kerberos/DevicePKInitEnabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DevicePKInitEnabled' -Value 1 -Type DWord
# Device authentication behavior using certificate
# Possible options:
#   Automatic = 0
#   Force = 1
Set-ItemProperty -Path $k -Name 'DevicePKInitBehavior' -Value 0 -Type DWord

Disable

# Disable: Kerberos/DevicePKInitEnabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DevicePKInitEnabled' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Kerberos/DevicePKInitEnabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
Remove-ItemProperty -Path $k -Name 'DevicePKInitEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DevicePKInitBehavior' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Device authentication behavior using certificate:Comportement de l'authentification de périphérique à l'aide de certificats :DevicePKInitBehaviorDrop-down listenumDevicePKInitBehaviorREG_DWORD
Default choice (UI): #0
LabelValue
AutomaticREG_DWORD = 0
ForceREG_DWORD = 1

Availability