Forum Discussion
Defender Firewall - rules configured in Intune not applying on Win10
Hey ShehzadUIT,
MMC does not display every Firewall rules, there are multiple stores like Local, GroupPolicy etc. use PowerShell to retrieve the Firewall rules for the "Active Store" and you will find your configured rules:
Get-NetFirewallRule -PolicyStore ActiveStore
Reference:
Get-NetFirewallRule (NetSecurity) | Microsoft Docs
best,
Oliver
Thanks Oliver Kieselbach you have helped me out (again) - would also add to help others that when filtering the results of the PowerShell query use $_.DisplayName not $_.Name as MDM gives the rule a generic string of characters as the name which isn't easy to spot.
so Get-NetFirewallRule -PolicyStore ActiveStore | where-object { $_.DisplayName -eq "YourRuleName" }
Will prove that the rule was created successfully
- Jul 22, 2021I created a blog about the firewall rule some time ago... and the get-netfirewallrule is indeed a good way do determine if the firewall rules were applied
https://call4cloud.nl/2020/07/the-windows-firewall-rises/#results- Carl BarrettJul 22, 2021Copper ContributorI like the closing gif 😉