Open in the explorer

Configure Windows Defender SmartScreen

Configurer Windows Defender SmartScreen

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/EnableSmartScreen

Explanation

This policy allows you to turn Windows Defender SmartScreen on or off. SmartScreen helps protect PCs by warning users before running potentially malicious programs downloaded from the Internet. This warning is presented as an interstitial dialog shown before running an app that has been downloaded from the Internet and is unrecognized or known to be malicious. No dialog is shown for apps that do not appear to be suspicious.

Some information is sent to Microsoft about files and programs run on PCs with this feature enabled.

If you enable this policy, SmartScreen will be turned on for all users. Its behavior can be controlled by the following options:

• Warn and prevent bypass
• Warn

If you enable this policy with the "Warn and prevent bypass" option, SmartScreen's dialogs will not present the user with the option to disregard the warning and run the app. SmartScreen will continue to show the warning on subsequent attempts to run the app.

If you enable this policy with the "Warn" option, SmartScreen's dialogs will warn the user that the app appears suspicious, but will permit the user to disregard the warning and run the app anyway. SmartScreen will not warn the user again for that app if the user tells SmartScreen to run the app.

If you disable this policy, SmartScreen will be turned off for all users. Users will not be warned if they try to run suspicious apps from the Internet.

If you do not configure this policy, SmartScreen will be enabled by default, but users may change their settings.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet d’activer ou de désactiver Windows Defender SmartScreen. SmartScreen aide à protéger les PC en avertissant les utilisateurs avant qu’ils n’exécutent les programmes potentiellement malveillants téléchargés à partir dֹ’Internet. Cet avertissement se présente sous forme d’une boîte de dialogue interstitielle qui s’affiche avant l’exécution d’une application téléchargée à partir d’Internet, qui n’est pas reconnue ou connue pour être malveillante. Aucune boîte de dialogue n’est affichée pour les applications qui ne semblent pas suspectes.

Certaines informations sont envoyées à Microsoft sur les fichiers et programmes exécutés sur les PC avec cette fonctionnalité activée.

Si vous activez ce paramètre de stratégie, la fonctionnalité SmartScreen est activée pour tous les utilisateurs. Son comportement peut être contrôlé par les options suivantes :

• Avertir et empêcher tout contournement
• Avertir

Si vous activez ce paramètre de stratégie avec l’option « Avertir et empêcher tout contournement », les boîtes de dialogue de SmartScreen ne présentent pas à l’utilisateur l’option permettant d’ignorer l’avertissement et d’exécuter l’application. SmartScreen continue d’afficher l’avertissement lors des tentatives ultérieures d’exécution de l’application .

Si vous activez ce paramètre de stratégie avec l’option « Avertir », les boîtes de dialogue de SmartScreen avertissent l’utilisateur que l’application semble suspecte, mais elles lui permettent d’ignorer l’avertissement et d’exécuter l’application malgré tout. SmartScreen n’envoie plus à l’utilisateur d’avertissements à propos de cette application si l’utilisateur indique à SmartScreen de l’exécuter.

Si vous désactivez ce paramètre de stratégie, la fonctionnalité SmartScreen est désactivée pour tous les utilisateurs. Les utilisateurs ne sont pas avertis s’ils essaient d’exécuter des applications suspectes à partir d’Internet.

Si vous ne configurez pas ce paramètre de stratégie, la fonctionnalité SmartScreen est activée par défaut, mais les utilisateurs peuvent modifier leurs paramètres.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
EnableSmartScreen
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.

Enable

# Enable: WindowsExplorer/EnableSmartScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableSmartScreen' -Value 1 -Type DWord
# Pick one of the following settings
# Possible options:
#   Warn and prevent bypass = Block
#   Warn = Warn
Set-ItemProperty -Path $k -Name 'ShellSmartScreenLevel' -Value 'Block' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/EnableSmartScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'EnableSmartScreen' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ShellSmartScreenLevel' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Pick one of the following settings:Choisissez l’un des paramètres suivants :EnableSmartScreenDropdownDrop-down listenumShellSmartScreenLevelREG_SZ
Required · Default choice (UI): #0
LabelValue
Warn and prevent bypassREG_SZ = Block
WarnREG_SZ = Warn

Availability