Ouvrir dans l'explorateur

Configurer la fonctionnalité « Bloquer à la première consultation »

Configure the 'Block at First Sight' feature

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › MAPS EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › MAPS
Pris en charge sur
Au moins Windows Server 2016, Windows 10 EN : At least Windows Server 2016, Windows 10
Fichier ADMX
WindowsDefender.admx
Nom interne
WindowsDefender/DisableBlockAtFirstSeen

Explication

Texte français issu de Windows 11 26H2

Cette fonctionnalité garantit que l’appareil vérifie en temps réel auprès du Microsoft Active Protection Service (MAPS) avant d’autoriser l’exécution ou l’accès à certains contenus. Si cette fonctionnalité est désactivée, la vérification n’est pas effectuée, ce qui diminue l’état de protection de l’appareil.
Activé : le paramètre Bloquer à la première consultation est activé.
Désactivé : le paramètre Bloquer à la première consultation est désactivé.

Cette fonctionnalité exige que les paramètres de cette stratégie de groupe soient définis comme suit :
MAPS -> L’option « Rejoindre Microsoft MAPS » doit être activée, sans quoi la fonctionnalité « Bloquer à la première consultation » ne fonctionnera pas.
MAPS -> L’option « Envoyer des exemples de fichier lorsqu’une analyse supplémentaire est nécessaire » doit être définie sur 1 (Envoyer des échantillons sécurisés) ou 3 (Envoyer tous les échantillons). Si l’option est définie sur 0 (Toujours demander), l’état de protection de l’appareil diminue. Si l’option est définie sur 2 (Ne jamais envoyer), la fonctionnalité « Bloquer à la première consultation » ne fonctionnera pas.
Protection en temps réel -> La stratégie « Analyser tous les fichiers et pièces jointes téléchargés » doit être activée, sans quoi la fonctionnalité « Bloquer à la première consultation » ne fonctionnera pas.
Protection en temps réel -> N’activez pas la stratégie « Désactiver la protection en temps réel », sans quoi la fonctionnalité « Bloquer à la première consultation » ne fonctionnera pas.

This feature ensures the device checks in real time with the Microsoft Active Protection Service (MAPS) before allowing certain content to be run or accessed. If this feature is disabled, the check will not occur, which will lower the protection state of the device.
Enabled – The Block at First Sight setting is turned on.
Disabled – The Block at First Sight setting is turned off.

This feature requires these Group Policy settings to be set as follows:
MAPS -> The “Join Microsoft MAPS” must be enabled or the “Block at First Sight” feature will not function.
MAPS -> The “Send file samples when further analysis is required” should be set to 1 (Send safe samples) or 3 (Send all samples). Setting to 0 (Always Prompt) will lower the protection state of the device. Setting to 2 (Never send) means the “Block at First Sight” feature will not function.
Real-time Protection -> The “Scan all downloaded files and attachments” policy must be enabled or the “Block at First Sight” feature will not function.
Real-time Protection -> Do not enable the “Turn off real-time protection” policy or the “Block at First Sight” feature will not function.

Cas d'usage

Contrôle le blocage à la première consultation : avant d’autoriser l’exécution ou l’accès à certains contenus, l’appareil interroge en temps réel le service cloud Microsoft (MAPS). Désactivée (valeur 1), la vérification n’a plus lieu et l’appareil est moins bien protégé contre les menaces encore inconnues ; l’ouverture d’un fichier peut en revanche être brièvement retardée quand elle est active, le temps d’obtenir un verdict.

La fonction a des dépendances : rejoindre MAPS, envoyer les échantillons (si l’envoi d’échantillons est coupé, le blocage à la première consultation l’est aussi, d’après Microsoft), et ne pas désactiver la protection en temps réel. Dans un réseau fermé sans accès au cloud, elle ne peut simplement pas fonctionner.

Source Microsoft : Cloud protection and sample submission at Microsoft Defender Antivirus

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet
Nom de la valeur
DisableBlockAtFirstSeen
ÉtatValeur écrite
ActivéREG_DWORD = 0
DésactivéREG_DWORD = 1

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 : WindowsDefender/DisableBlockAtFirstSeen
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableBlockAtFirstSeen' -Value 0 -Type DWord

Désactiver

# Désactiver : WindowsDefender/DisableBlockAtFirstSeen
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableBlockAtFirstSeen' -Value 1 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsDefender/DisableBlockAtFirstSeen
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet'
Remove-ItemProperty -Path $k -Name 'DisableBlockAtFirstSeen' -ErrorAction SilentlyContinue

Disponibilité