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.