Allow user name hint
Autoriser l’indication du nom d’utilisateur
Explanation
This policy setting lets you determine whether an optional field will be displayed during logon and elevation that allows a user to enter his or her user name or user name and domain, thereby associating a certificate with that user.
If you enable this policy setting then an optional field that allows a user to enter their user name or user name and domain will be displayed.
If you disable or do not configure this policy setting, an optional field that allows users to enter their user name or user name and domain will not be displayed.
Ce paramètre de stratégie vous permet de déterminer si un champ facultatif doit être affiché durant l’ouverture de session et l’élévation pour autoriser une personne à entrer son nom d’utilisateur et/ou son nom d’utilisateur et domaine (ce qui revient à associer un certificat à l’utilisateur spécifié).
Si vous activez ce paramètre de stratégie, un champ facultatif s’affiche pour que la personne puisse entrer son nom d’utilisateur et/ou son nom d’utilisateur et domaine.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, aucun champ facultatif ne s’affiche pour permettre à une personne d’entrer son nom d’utilisateur et/ou son nom d’utilisateur et domaine.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider- Value name
X509HintsNeeded
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: Smartcard/X509HintsNeeded
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'X509HintsNeeded' -Value 1 -Type DWordDisable
# Disable: Smartcard/X509HintsNeeded
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'X509HintsNeeded' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Smartcard/X509HintsNeeded
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'X509HintsNeeded' -ErrorAction SilentlyContinue