Share via

AppLocker script restriction rules blocking legitimate administrative logon script execution arrays

Hakim Ismail 0 Reputation points
2026-06-19T03:37:22.39+00:00

We deployed an AppLocker script enforcement profile to secure user desktop environments. This has broken our legacy onboarding pipeline, because the corporate user login script which maps specific network printers and share mounts is being blocked from executing out of the network logon path.

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Most helpful
  1. Harry Phan 22,550 Reputation points Independent Advisor
    2026-06-19T04:49:43.15+00:00

    Hello Ismail,

    What’s happening here is that AppLocker is enforcing script rules and blocking your legacy logon script because it’s running outside the approved execution path. Since AppLocker evaluates publisher, path, and hash rules, anything in \\domain\netlogon or redirected folders that isn’t explicitly whitelisted will be denied.

    The clean way forward is to either sign the script and create a publisher rule to allow it, or move it into a trusted path that your AppLocker policy permits. If you can’t change the script location, you’ll need to add a specific path rule in the AppLocker GPO for that logon script directory. Avoid simply disabling enforcement, as that defeats the security model. Once the rule is updated and applied, the onboarding pipeline will run again without breaking your AppLocker protections.

    Was this answer helpful?

    0 comments No comments

Your answer

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