Configure the 'Block at First Sight' feature
Configurer la fonctionnalité « Bloquer à la première consultation »
Explanation
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.
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.
Use cases
Controls block at first sight: before allowing certain content to run or be accessed, the device checks in real time with the Microsoft cloud service (MAPS). When disabled (value 1), the check no longer happens and the device is less protected against still-unknown threats; when enabled, opening a file may be briefly delayed while a verdict is obtained.
The feature has dependencies: joining MAPS, sending samples (if sample submission is turned off, block at first sight is turned off too, according to Microsoft), and not disabling real-time protection. On a closed network without cloud access it simply cannot work.
Microsoft source: Cloud protection and sample submission at Microsoft Defender Antivirus
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet- Value name
DisableBlockAtFirstSeen
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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: 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 DWordDisable
# Disable: 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 DWordRevert to "Not configured"
# Revert to "Not configured": WindowsDefender/DisableBlockAtFirstSeen
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet'
Remove-ItemProperty -Path $k -Name 'DisableBlockAtFirstSeen' -ErrorAction SilentlyContinue