This policy setting turns off real-time protection prompts for known malware detection. Windows Defender Antivirus alerts you when malware or potentially unwanted software attempts to install itself or to run on your computer. If you enable this policy setting, Windows Defender Antivirus will not prompt users to take actions on malware detections. If you disable or do not configure this policy setting, Windows Defender Antivirus will prompt users to take actions on malware detections.
Solution
Policy Path: Windows Components\Microsoft Defender Antivirus\Real-time Protection Policy Setting Name: Turn off real-time protection