Empêcher les remplacements d’erreur de certificat : valeur de Registre PreventCertErrorOverridesUtilisateurHKCU\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings

ID de stratégie
PreventCertErrorOverrides
Étendue
Configuration ordinateur, configuration utilisateur
Pris en charge sur
Microsoft Edge sur Windows 10, version 1809 ou ultérieure
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Microsoft Edge

Registre

PreventCertErrorOverrides

REG_DWORDUtilisateurOrdinateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings]

; Options (en utiliser une seule)
; Activé
"PreventCertErrorOverrides"=dword:00000001
; Désactivé
"PreventCertErrorOverrides"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKCU\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings" /v "PreventCertErrorOverrides" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKCU\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings" /v "PreventCertErrorOverrides" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'PreventCertErrorOverrides' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'PreventCertErrorOverrides' -PropertyType DWord -Value 0 -Force | Out-Null
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings]

; Options (en utiliser une seule)
; Activé
"PreventCertErrorOverrides"=dword:00000001
; Désactivé
"PreventCertErrorOverrides"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings" /v "PreventCertErrorOverrides" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings" /v "PreventCertErrorOverrides" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'PreventCertErrorOverrides' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'PreventCertErrorOverrides' -PropertyType DWord -Value 0 -Force | Out-Null