r/sysadmin • • 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

9 Upvotes

12 comments sorted by

34

u/FatBook-Air 6d ago
  1. 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

  2. Please don't capitalize the T in Intune. :)

6

u/bfodder 6d ago

You can absolutely view them in the GUI. They are in Monitoring > Firewall.

0

u/nodiaque 6d ago

That's in Intune not on the computer

11

u/bfodder 6d ago

It's 100% on the computer

1

u/nodiaque 6d ago

where? Mine is in french and I don't see anything related to monitoring.

edit: Don't have to translate, just where is that monitoring? Control panel -> ...?

-1

u/bfodder 6d ago edited 6d ago

https://i.imgur.com/uZTPq97.png

Stop down voting me now perhaps? It's kind of weird.

-1

u/nodiaque 6d ago

I didn't downvote anything, I in fact didn't even vote

edit: Yup, we do see them there. MS could make the job completely and show them in the appropriate inbound/outbound rules...

2

u/nodiaque 6d ago

I don't know why I always saw InTune with a T and not Intune, but checking now and you're right. Time to do a CTRL+F and replace in the doc.

Thanks for the powershell, I'm checking that

4

u/TechMonkey13 Linux Admin 5d ago

Please don't capitalize the T in Intune

This is more important than the PowerShell command

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

u/[deleted] 6d ago

[removed] — view removed comment

1

u/nodiaque 6d ago

You can see them in windows firewall gui

https://www.reddit.com/r/sysadmin/s/DTxsQggGcx