Select On (recommended) to have Windows Firewall with Advanced Security use the settings for this profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile. The recommended state for this setting is: Enabled. Rationale: If the firewall is turned off all traffic will be able to access the system and an attacker may be more easily able to remotely exploit a weakness in a network service. Impact: None - this is the default behavior.
Solution
To establish the recommended configuration, set the following Device Configuration Policy to Enabled: To access the Device Configuration Policy from the Intune Home page: Click Devices Click Configuration profiles Click Create profile Select the platform (Windows 10 and later) Select the profile (Endpoint protection) Click Create Enter a Name Click Next Configure the following Setting Path: Endpoint protection/Microsoft Defender Firewall/Private (discoverable) network Setting Name: Microsoft Defender Firewall Configuration: Enabled Select OK Continue through the Wizard to complete the creation of the profile (profile assignments, applicability etc.) Note: More than one configuration setting from each of the Configuration profiles (ex: Administrative Templates, Custom etc.) can be added to each Device Configuration Policy. Default Value: On (recommended). (The Windows Firewall with Advanced Security will be active in this profile.)