Open in the explorer

Require trusted path for credential entry

Exiger un chemin d’accès approuvé pour une entrée d’informations d’identification

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Credential User Interface FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Interface utilisateur d’informations d’identification
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
CredUI.admx
Internal name
CredUI/EnableSecureCredentialPrompting

Explanation

This policy setting requires the user to enter Microsoft Windows credentials using a trusted path, to prevent a Trojan horse or other types of malicious code from stealing the user’s Windows credentials.

Note: This policy affects nonlogon authentication tasks only. As a security best practice, this policy should be enabled.

If you enable this policy setting, users will be required to enter Windows credentials on the Secure Desktop by means of the trusted path mechanism.

If you disable or do not configure this policy setting, users will enter Windows credentials within the user’s desktop session, potentially allowing malicious code access to the user’s Windows credentials.

French text from Windows 11 26H2

Ce paramètre de stratégie oblige les utilisateurs à entrer des informations d’identification Microsoft Windows en utilisant un chemin d’accès approuvé, pour empêcher un cheval de Troie ou tout autre code malveillant de voler les informations d’identification Windows de l’utilisateur.

Remarque : cette stratégie n’affecte que les tâches d’authentification hors connexion. Il est recommandé de l’activer pour garantir la sécurité.

Si vous activez ce paramètre de stratégie, les utilisateurs doivent entrer les informations d’identification Windows sur le bureau sécurisé au moyen du mécanisme de chemin d’accès approuvé.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs entrent les informations d’identification Windows dans la session de Bureau de l’utilisateur, permettant ainsi à un code malveillant d’accéder à leurs informations d’identification Windows.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\CredUI
Value name
EnableSecureCredentialPrompting
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: CredUI/EnableSecureCredentialPrompting
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\CredUI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableSecureCredentialPrompting' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: CredUI/EnableSecureCredentialPrompting
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\CredUI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableSecureCredentialPrompting' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": CredUI/EnableSecureCredentialPrompting
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\CredUI'
Remove-ItemProperty -Path $k -Name 'EnableSecureCredentialPrompting' -ErrorAction SilentlyContinue

Availability