Hello PerserPolis-1732,
Thank you for posting in Q&A forum.
1.Please check the PS script itself works fine when you run it manually.
2.Please make sure you put AD domain user accounts into **"maintest"**and its child OU "test1", "test2", **"test3"**and "test4", because it is user configuration.
3.Please sign in one Domain user account in OU "maintest" on one client and sign out this account and sign in the same domain user account again and check if the script runs.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.