Ouvrir dans l'explorateur

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

Support device authentication using certificate

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Kerberos EN : Computer Configuration › Policies › Administrative Templates › System › Kerberos
Pris en charge sur
Au moins Windows Server 2016, Windows 10 EN : At least Windows Server 2016, Windows 10
Fichier ADMX
Kerberos.admx
Nom interne
Kerberos/DevicePKInitEnabled

Explication

Texte français issu de 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

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

Registre

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters
Nom de la valeur
DevicePKInitEnabled
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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
# Comportement de l'authentification de périphérique à l'aide de certificats
# Options possibles :
#   Automatic = 0
#   Force = 1
Set-ItemProperty -Path $k -Name 'DevicePKInitBehavior' -Value 0 -Type DWord

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : 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)

LibelléContrôleValeur de registreType REGContraintes / détails
Comportement de l'authentification de périphérique à l'aide de certificats :Device authentication behavior using certificate:DevicePKInitBehaviorListe déroulanteenumDevicePKInitBehaviorREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
AutomaticREG_DWORD = 0
ForceREG_DWORD = 1

Disponibilité