Why is AppLocker imported policy only executing some rules when imported on computer B when all rules were working on computer A of the same configuration?

Dom0324 0 Reputation points
2023-08-18T00:36:10.34+00:00

I'm working with two computers with the exact same hardware and version of Windows--for simplicity let's call them computer A and computer B. I've created an AppLocker policy in the Local Security Policy editor on computer A and all the rules were working as expected, so I exported the policy, added it to a USB, and migrated it to computer B. When I import the policy into the Local Security Policy editor AppLocker location, I see that the same number of rules come across as I had on computer A (great!). However, it doesn't not seem like the enforcement is the same on both systems. Computer B is only getting partial enforcement. The big examples are explorer.exe and MS Edge. On computer A, both of these features are correctly blocked, but on computer B they both work. I was under the assumption that AppLocker takes a whitelist approach, and there are no explicit allow rules for MS Edge or explorer.exe, so how are they being allowed to run on computer B?

Please also note that all the rules are set to impact the Everyone group, with one exception allow rule that unblocks everything for a local admin account so I don't mess up my ability to use my computers.

I'm certain the correct application identification services are running, because some of the rules are being enforced on computer B. Diff-checked the policies on computer A and computer B to make sure nothing weird happened with the import/export. They're identical. Really at a loss here.

Also, I unfortunately cannot just take the image from computer A and put that on computer B. I'm developing a work instruction in which I need to outline the process for getting from a base Windows 10 installation to a configured version of Windows 10 with proper AppLocker enforcement. It would be nice if that process included simply an import of an AppLocker policy and not a manual setting of all the rules.

Any help would be greatly appreciated. Thank you for your time.

Windows for business Windows Client for IT Pros Devices and deployment Configure application groups
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2023-08-21T12:49:00.6233333+00:00

    Hello there,

    AppLocker policies are applied in a specific order, and the most specific rule wins. Check if any other policies (local group policies, domain group policies) are applied after the imported policy that may override the rules.

    On Computer B, you can use the "Test-AppLockerPolicy" cmdlet in PowerShell to simulate the effect of a specific AppLocker policy on a file. This can help diagnose why a particular rule is not working as expected.

    If Computer A and Computer B are not exact duplicates (hardware and software), there may be differences in the system state that impact AppLocker rule enforcement. Check for differences in installed applications and configurations.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    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.