
You need to open an elevated PowerShell prompt to run these commands:
Set-MpPreference -EnableNetworkProtection Disabled.
Set-MpPreference -EnableNetworkProtection AuditMode.
Set-MpPreference -EnableNetworkProtection Enabled. You may use the PowerShell instead to manage the Network protection feature. Audit Mode - This records blocked events but won't block the events. Disabled (default) - The feature is not active. Block - Malicious IP addresses and domains are blocked. Set the policy to enabled, and assign it one of the available modes:.
Load "Prevent users and apps from accessing dangerous websites" with a double-click. Navigate to Computer Configuration > Administrative Templates > Windows components > Windows Defender Antivirus > Windows Defender Exploit Guard > Network protection. Tap on the Windows-key, type gpedit.msc and hit the Enter-key to load the Group Policy Editor.