Configure Windows Defender SmartScreen
Configurer Windows Defender SmartScreen
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.
Cette 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 la 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.
Use cases
Turns on SmartScreen in the shell: a dialog warns the user before running a downloaded application that is unrecognised or known to be malicious. Two levels: “Warn”, where the user can override, and “Warn and prevent bypass”, where there is no longer a button to run the app anyway and the warning returns on every attempt.
On a standard workstation the second level stops a reflex click from cancelling the protection, at the cost of support tickets for unsigned or rarely used in-house tools. Also note that information about the files and programs you run is sent to Microsoft while the feature is on, a point to include in your GDPR compliance review.
Microsoft source: Policy CSP - SmartScreen
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
EnableSmartScreen
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: SmartScreen/ShellConfigureSmartScreen
$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 StringDisable
# Disable: SmartScreen/ShellConfigureSmartScreen
$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 DWordRevert to "Not configured"
# Revert to "Not configured": SmartScreen/ShellConfigureSmartScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'EnableSmartScreen' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ShellSmartScreenLevel' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pick one of the following settings:Choisissez l’un des paramètres suivants :ShellConfigureSmartScreen_Dropdown | Drop-down listenum | ShellSmartScreenLevel | REG_SZ | Required · Default choice (UI): #0
|