Prevent bypassing SmartScreen Filter warnings
Empêcher le contournement des avertissements du filtre SmartScreen
Explanation
This policy setting determines whether the user can bypass warnings from SmartScreen Filter. SmartScreen Filter prevents the user from browsing to or downloading from sites that are known to host malicious content. SmartScreen Filter also prevents the execution of files that are known to be malicious.
If you enable this policy setting, SmartScreen Filter warnings block the user.
If you disable or do not configure this policy setting, the user can bypass SmartScreen Filter warnings.
Ce paramètre de stratégie détermine si l’utilisateur peut ignorer les avertissements du filtre SmartScreen. Le filtre SmartScreen empêche l’utilisateur de naviguer ou de télécharger sur des sites connus pour héberger du contenu malveillant. Le filtre SmartScreen empêche également l’exécution des fichiers connus pour être malveillants.
Si vous activez ce paramètre de stratégie, les avertissements du filtre SmartScreen bloquent l’utilisateur.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’utilisateur peut ignore les avertissements du filtre SmartScreen.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\PhishingFilterHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\PhishingFilter- Value name
PreventOverride
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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.
Computer (HKLM)
Enable
# Enable: inetres/DisableSafetyFilterOverride
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\PhishingFilter'
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 'PreventOverride' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: inetres/DisableSafetyFilterOverride
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\PhishingFilter'
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 'PreventOverride' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/DisableSafetyFilterOverride
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\PhishingFilter'
Remove-ItemProperty -Path $k -Name 'PreventOverride' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"