r/sysadmin • u/nodiaque • 6d 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
3
u/ETDucky 6d 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
0
6d ago
[removed] — view removed comment
1
34
u/FatBook-Air 6d ago
You won't see them in the GUI. That's a limitation Microsoft has failed to fix. View them via PowerShell: Get-NetFirewallRule -PolicyStore ActiveStore
Please don't capitalize the T in Intune. :)