IntuneTroubleshooting

Intune firewall rules not applying: atomic blocks, conflicts, rule limits and MDM errors

Why Intune firewall rules fail or never reach Windows devices: find the bad rule in event 404, fix invalid values, conflicts and merge settings, and verify the active rules.

You assign a Windows Firewall rules profile in Intune and the app is still blocked, or none of the rules show up on the device. Firewall rules fail in predictable ways: one invalid rule takes the whole profile down, two policies fight over the same setting, or a merge setting hides rules you expected to work. In this post I'll show how to find the failing rule, fix it, and prove which rules are active.

Errors this guide fixes

  • MDM ConfigurationManager: Command failure statusDeviceManagement-Enterprise-Diagnostics-Provider
  • ...LocalPortRanges), Result: (The parameter is incorrect)DeviceManagement-Enterprise-Diagnostics-Provider
  • ...RemotePortRanges), Result: (The parameter is incorrect)DeviceManagement-Enterprise-Diagnostics-Provider
  • ...Name), Result: (The parameter is incorrect)DeviceManagement-Enterprise-Diagnostics-Provider
  • ...InterfaceTypes), Result: (The parameter is incorrect)DeviceManagement-Enterprise-Diagnostics-Provider
How this guide is organized: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Confirm the device received the profile; Find the first failing rule; Correct the rule; Remove setting conflicts; Check merge settings and Group Policy; Split large profiles). 4. Verify the fix. 5. Prevent it next time. Toolbox: Event ID 404, Test-IntuneFirewallRules, Microsoft-Windows, Test-NetConnection, Endpoint security › Firewall.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Confirm thedevice receive…2Find the firstfailing rule3Correct therule4Removesetting confli…5Check mergesettings and…6Split largeprofilesTOOLBOXEvent ID 404Test-IntuneFirewallRulesMicrosoft-WindowsTest-NetConnectionEndpoint security › FirewallHow this guide is organized: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Confirm the device received the profile; Find the first failing rule; Correct the rule; Remove setting conflicts; Check merge settings and Group Policy; Split large profiles). 4. Verify the fix. 5. Prevent it next time. Toolbox: Event ID 404, Test-IntuneFirewallRules, Microsoft-Windows, Test-NetConnection, Endpoint security › Firewall.1Symptoms2Why it happens3How to fix it1Confirm the device received the profile2Find the first failing rule3Correct the rule4Remove setting conflicts5Check merge settings and Group Policy6Split large profiles4Verify the fix5Prevent it next timeTOOLBOXEvent ID 404Test-IntuneFirewallRulesMicrosoft-WindowsTest-NetConnectionEndpoint security › Firewall
At a glance: how this guide is organized · 6 fix steps · 5 key tools

Symptoms#

  • A rules profile reports errors, or reports success while traffic is still blocked.
  • None of a profile's rules appear on the device, even though only one of them is wrong.
  • A Windows Firewall setting, such as turning the firewall on for the public network profile, shows a conflict and never reaches the device.
  • Reports › Firewall › MDM Firewall status for Windows lists devices as Disabled, Limited or Temporarily Disabled instead of Enabled.
  • The Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin log shows event 404 for firewall rule nodes:
Text
MDM ConfigurationManager: Command failure status. ...
CSP URI: (./Vendor/MSFT/Firewall/MdmStore/FirewallRules/<rule-id>/LocalPortRanges), Result: (The parameter is incorrect).

The last segment of the CSP URI names the property Windows rejected. The variants Microsoft documents are:

  • ...LocalPortRanges), Result: (The parameter is incorrect)
  • ...RemotePortRanges), Result: (The parameter is incorrect)
  • ...Name), Result: (The parameter is incorrect)
  • ...InterfaceTypes), Result: (The parameter is incorrect)

Why it happens#

Why Intune firewall rules don't reach or don't work on a deviceIs the device listed in the rules profile's device status? if No: Fix the assignment first (Group, filter and platform Windows); if Yes: Does the Admin log show event 404 for FirewallRules? if Yes: Correct the first failing rule (One invalid rule fails its whole Atomic block; match it by the property); if No: Which symptom is left? if Setting conflict: Give the setting one owner (Security baselines are the usual suspect); if App still blocked: Check block rules, merge and Group Policy (A block rule beats an allow; local rules need Allow Local Policy Merge)Is the device listed in the rulesprofile's device status?FIXFix the assignment firstGroup, filter and platformWindowsNoDoes the Admin log show event404 for FirewallRules?FIXCorrect the first failingruleOne invalid rule fails itswhole Atomic block; matchit by the propertyYesWhich symptom is left?FIXGive the setting oneownerSecurity baselines are theusual suspectSetting conflictFIXCheck block rules,merge and Group PolicyA block rule beats an allow;local rules need Allow LocalPolicy MergeApp still blockedNoYesWhy Intune firewall rules don't reach or don't work on a deviceIs the device listed in the rules profile's device status? if No: Fix the assignment first (Group, filter and platform Windows); if Yes: Does the Admin log show event 404 for FirewallRules? if Yes: Correct the first failing rule (One invalid rule fails its whole Atomic block; match it by the property); if No: Which symptom is left? if Setting conflict: Give the setting one owner (Security baselines are the usual suspect); if App still blocked: Check block rules, merge and Group Policy (A block rule beats an allow; local rules need Allow Local Policy Merge)Is the device listed in the rules profile's devicestatus?NoFIXFix the assignment firstGroup, filter and platform WindowsYesDoes the Admin log show event 404 forFirewallRules?YesFIXCorrect the first failing ruleOne invalid rule fails its whole Atomic block;match it by the propertyNoWhich symptom is left?Setting conflictFIXGive the setting one ownerSecurity baselines are the usual suspectApp still blockedFIXCheck block rules, merge and GroupPolicyA block rule beats an allow; local rules needAllow Local Policy Merge
Figure 1 · Decision tree Why Intune firewall rules don't reach or don't work on a device. Start with the profile's device status, then the event log, and follow the answers to the rule, setting or merge problem.
  • Atomic blocks are all or nothing. Intune delivers firewall rules to the Firewall configuration service provider (CSP) inside Atomic blocks. On Windows 11 and on Windows 10 21H2 and later, if any rule in a block fails, the CSP applies none of them. Older builds stopped at the failing rule and kept the ones already applied. A property the OS doesn't support fails the block too: ICMP types and codes, for example, aren't supported on Windows 10.
  • Invalid values. Port ranges must be ascending and within 0–65535, and a rule with ports needs protocol 6 (TCP) or 17 (UDP). Edge traversal is only valid on inbound rules, and the All interface type can't be combined with other types.
  • Setting conflicts. When two policies set the same Windows Firewall setting to different values (two Windows Firewall profiles, or one plus a security baseline, an Endpoint protection template or a settings catalog policy), Intune doesn't send that setting to the device. Windows Firewall profiles don't conflict with Windows Firewall rules profiles.
  • Contradicting rules. Rules profiles merge on the device. If one profile blocks an app and another allows it, both rules are delivered, and in Windows Firewall a block rule normally beats an allow rule.
  • Local policy merge. When Allow Local Policy Merge is false for a network profile, rules in the device's local store (created by installers, users or scripts) are ignored. If Group Policy also sets this value, the Group Policy value always wins.
  • The rule limit. Each Windows Firewall rules profile supports up to 150 custom rules.

How to fix it#

1. Confirm the device received the profile#

In the Microsoft Intune admin center, open Endpoint security › Firewall, select the rules profile and check its device status. If the device isn't listed, fix the assignment (group, filter, platform Windows) first. Then sync from Settings › Accounts › Access work or school (select the account, Info, Sync) so the logs below are fresh.

2. Find the first failing rule#

PowerShell
$log = 'Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin'
Get-WinEvent -FilterHashtable @{ LogName = $log; Id = 404 } -MaxEvents 300 -ErrorAction SilentlyContinue |
    Where-Object { $_.Message -like '*Firewall/MdmStore/FirewallRules*' } |
    Sort-Object TimeCreated |
    Select-Object TimeCreated, Message | Format-List

Read the earliest failure from the latest sync: rules after the bad one can be logged as failed even though they're valid, so fix the first real failure and sync again. The rule ID in the URI is generated by Intune; match it by the property instead and check every rule in the profile that sets it. If several are suspects, use Duplicate on the profile, assign the copy to a test device and remove rules until it applies. Microsoft's Intune support tip on tracing firewall rule creation also includes a Test-IntuneFirewallRules script for this.

3. Correct the rule#

Property in the CSP URIWhat Windows expectsFix
LocalPortRanges, RemotePortRangesAscending ranges within 0–65535, comma-separated (100-120,200)Reverse ranges like 5-1; set protocol 6 or 17
NameEdge traversal only on inbound rulesSet the direction to inbound, or turn edge traversal off
InterfaceTypesAll on its own, or any mix of the other typesClear the other types when All is selected
IcmpTypesAndCodesPairs such as 3:4, protocol 1 or 58, Windows 11Put ICMP rules in a profile for Windows 11 devices only
LocalAddressRanges, RemoteAddressRanges* as the only entry, or addresses, subnets and ranges without spacesRemove * from mixed lists
PolicyAppIdNot combined with a service name; needs App Control taggingSplit into two rules

To test a doubtful value, create the same rule by hand on a test device; if Windows rejects it, the policy will fail too.

4. Remove setting conflicts#

For a Windows Firewall setting in conflict, open the profile's per-setting status to find the setting, then find the other policy that manages it. Security baselines are the usual suspect because they set firewall values by default. Give each setting a single owner: set it to Not configured in the baseline or remove it from the extra policy. The MDM diagnostic report shows which source set what, and security baseline conflicts covers the baseline side.

5. Check merge settings and Group Policy#

PowerShell
Get-NetFirewallProfile -PolicyStore ActiveStore |
    Select-Object Name, Enabled, DefaultInboundAction, AllowLocalFirewallRules
gpresult /h "$env:USERPROFILE\Desktop\gpresult.html"

AllowLocalFirewallRules set to False explains apps whose self-created rules stop working. On hybrid joined devices, check the Group Policy report for firewall settings that override Intune.

6. Split large profiles#

Past 150 rules, create another rules profile. Non-conflicting rules from several profiles merge on the device, so splitting by application or team also keeps a bad rule's impact small.

Verify the fix#

PowerShell
Get-NetFirewallRule -PolicyStore ActiveStore |
    Where-Object { $_.PolicyStoreSourceType -eq 'MDM' } |
    Sort-Object DisplayName |
    Format-Table DisplayName, Enabled, Direction, Action, PrimaryStatus -AutoSize

Get-NetFirewallRule -PolicyStore ActiveStore -DisplayName 'Contoso agent inbound' |
    Get-NetFirewallPortFilter

Good looks like this:

  • Every rule from the profile is listed with Enabled True and PrimaryStatus OK, and the port filter shows your protocol and ports.
  • No new event 404 for MdmStore/FirewallRules after the next sync.
  • The profile's device status shows success, and MDM Firewall status for Windows shows Enabled.
  • The traffic works: for an outbound rule, Test-NetConnection -ComputerName app01 -Port 443 returns TcpTestSucceeded : True; test inbound rules from another machine.

Prevent it next time#

  • Keep rules profiles small and themed, so one bad rule only blocks its own profile.
  • Pilot rule changes on a test group that covers every Windows version you run.
  • Give every firewall setting one owner, as described in choosing the right Intune policy type.
  • If rules break across many devices without a change on your side, check service health and known issues before editing policies.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)