Open in the explorer

Prevent certificate error overrides

Empêcher les remplacements d’erreur de certificat

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge User Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft EdgeFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft Edge
Supported on
Microsoft Edge on Windows 10, Version 1809 or later FR: Microsoft Edge sur Windows 10, version 1809 ou ultérieure
ADMX file
MicrosoftEdge.admx
Internal name
MicrosoftEdge/PreventCertErrorOverrides

Explanation

Web security certificates are used to ensure a site your users go to is legitimate, and in some circumstances encrypts the data. With this policy, you can specify whether to prevent users from bypassing the security warning to sites that have SSL errors.

If enabled, overriding certificate errors are not allowed.

If disabled or not configured, overriding certificate errors are allowed.

French text from Windows 11 26H2

Les certificats de sécurité web permettent de garantir la légitimité d'un site que vos utilisateurs visitent et, dans certaines circonstances, chiffrent les données. Avec cette stratégie, vous pouvez spécifier s'il faut empêcher les utilisateurs de contourner l'avertissement de sécurité sur les sites qui présentent des erreurs SSL.

Si cette option est activée, il est interdit de remplacer les erreurs de certificat.

Si cette option est désactivée ou n'est pas configurée, le remplacement d'erreurs de certificat est autorisé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings
HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings
Value name
PreventCertErrorOverrides
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.

Computer (HKLM)

Enable

# Enable: MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -Value 1 -Type DWord

Disable

# Disable: MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
Remove-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004✓ 1909✓ 1903✓ 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server