Windows Firewall rule automatically created and deleted by microsoft apps

ASHISH PATIL 10 Reputation points
2025-03-28T06:48:55.19+00:00

We have noticed in Windows the firewall rules are automatically created and deleted majorly for Microsoft store apps and third-party adobe reader.

As it looks strange behavior we observed in windows OS and unable to understand whether this is legitimate or suspicious activity.

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Anonymous
    2025-03-28T07:06:39.1866667+00:00

    Hello,

    Here are a few points to consider:

    Automatic Rule Creation: Windows Defender Firewall can automatically create rules for certain applications, including Microsoft Store apps and third-party softwares. This is typically done to ensure these applications can function correctly and securely.

    Legitimate Activity: In many cases, these automatic changes are legitimate and part of the normal operation of Windows and the applications you use. For example, updates to apps might trigger the creation or modification of firewall rules to maintain proper connectivity and security.

    Suspicious Activity: If you notice unusual or frequent changes that seem out of the ordinary, it could be worth investigating further. Ensure your system is up to date with the latest security patches and run a full system scan with your antivirus software to rule out any potential threats.

    Have a nice day.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

     


  2. Kamesh Patil 5 Reputation points
    2025-03-31T09:01:05.8833333+00:00

    Hi Microsoft Team,

    Anybody can response to our query as we are not able to find any documented information about firewall rules deletion in Windows.

    Your prompt response is highly appreciated !

    0 comments No comments

  3. VinceV2022 65 Reputation points
    2025-08-19T15:26:47.63+00:00

    This is a known issue that Microsoft has refused to fix. The rules are created even though the firewall has been disabled. In our case (high volume/high turnover) Citrix environment the rules eventually fill up the registry causing a lot of issues.

    The DeleteUserAppContainersOnLogoff registry key has stopped removing the entries.

    The only fix we have discovered that works is to run these 2 PowerShell commands and then restart the server:
    Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\AppIso\FirewallRules"

    New-Item "HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\AppIso\FirewallRules"

    The alternative of removing the rules individually took too long.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.