Information
Network protection inspects network traffic and determines whether it allows or blocks traffic or displays a warning.
Disabled (Default): If Not Configured or Disabled network protection will display a warning for warn verdicts.
Enabled: If this setting is Enabled network protection blocks network traffic instead of displaying a warning.
Solution
Policy Path: Windows Components\Microsoft Defender Antivirus\Network Inspection System
Policy Setting Name: Convert warn verdict to block