Hello
Thank you for posting in Q&A forum.
As your describe,After restricted to a specific computer, the script fails—returning a false.
So now it's our question. GPO restricted user log through some computer.
But script need it .
If we want to fixed it , we can only find out which computer did user or script need to login. and add right. or we can try to change the script to login without throught that computer.
Best regards
Yanhong
=====================================
If the answer is helpful, please click "Accept answer" and upvote it