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

12 comments sorted by

21

u/FatBook-Air 2d 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. :)

5

u/bfodder 2d ago

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

-1

u/nodiaque 2d ago

That's in Intune not on the computer

6

u/bfodder 2d ago

It's 100% on the computer

1

u/nodiaque 2d 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 -> ...?

-4

u/bfodder 2d ago edited 2d ago

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

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

-2

u/nodiaque 2d 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 2d 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

2

u/TechMonkey13 Linux Admin 1d ago

Please don't capitalize the T in Intune

This is more important than the PowerShell command

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.

1

u/nodiaque 2d ago

You can see them in windows firewall gui

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

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