Configurer Windows Defender SmartScreen
Configure Windows Defender SmartScreen
Explication
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.
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.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Nom de la valeur
EnableSmartScreen
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : 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
# Choisissez l’un des paramètres suivants
# Options possibles :
# Warn and prevent bypass = Block
# Warn = Warn
Set-ItemProperty -Path $k -Name 'ShellSmartScreenLevel' -Value 'Block' -Type StringDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsExplorer/EnableSmartScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'EnableSmartScreen' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ShellSmartScreenLevel' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Choisissez l’un des paramètres suivants :Pick one of the following settings:EnableSmartScreenDropdown | Liste déroulanteenum | ShellSmartScreenLevel | REG_SZ | Obligatoire · Choix par défaut (interface) : n° 0
|