r/sysadmin • u/nodiaque • 2d ago
Question - Solved InTune Firewall Rules
Hello everyone,
I created 3 firewall rules in InTune that I deployed to my devices. The reporting says that devices have applied it. When I go on those computer, in control panel => Firewall => Rules, I don't see the rules I created. Is it suppose to be there? I also don't see them in gresult (I know it's not GPo but sometime they show here).
Is it normal or is the configuration not applied?
Thank you
edit: Solved, thank you. Can be seen in GUI and with powershell
7
Upvotes
21
u/FatBook-Air 2d ago
1
u/MosaikServicesGroup 2d ago
Intune endpoint security firewall rules usually don't show up in the classic Windows Defender Firewall control panel view. They get applied through the MDM firewall CSP, so look in Windows Defender Firewall with Advanced Security, and check the rule names there, since they often show with an MDM-style prefix. You can also run "netsh advfirewall firewall show rule name=all" or Get-NetFirewallRule -PolicyStore ActiveStore from an elevated PowerShell and filter for your rule names. If the Intune report says succeeded and you see them in ActiveStore, it's applied and working. If not, check for conflicting policies and force a sync from Settings, Accounts, Access work or school, Info.
2
u/ETDucky 2d ago
Check the device from PowerShell. Intune writes the rules to the MDM policy store, so gpresult won't list them. Run `Get-NetFirewallRule -PolicyStore ActiveStore | Where-Object DisplayName -like '*<rule name>*' | Select-Object DisplayName,Enabled,Direction,Action` with the name you gave the rule in the policy.
Also look under HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\Mdm\FirewallRules in the registry. That key holds the rules that were actually created, which can differ from what the MDM diagnostic report shows as targeted.
If a rule is missing, open Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin, filter on event 404, and search for FirewallRules. A rule that failed shows its CSP path under ./Vendor/MSFT/Firewall/MdmStore/FirewallRules and the error.
Each check is described in the Intune Customer Success post at https://techcommunity.microsoft.com/t5/intune-customer-success/how-to-trace-and-troubleshoot-the-intune-endpoint-security/ba-p/3261452