Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Script in Group Policy Only Runs for User who Created It

$
0
0

Hi,

I have recently created a powershell script and would like to run it through group policy as part of a logon script on our domain.

I have three users (including myself) in a test OU in Active Directory which runs the script on logon. Of those 3, the script will only run on logon for me, not for my two colleagues.

I have tried on several machines (it's worth noting that all of the machines tested had the execution policy set toRestricted), and it ran successfully for me on all.

When my colleagues logged into the same machines, the script did not run.

Also, the script is run on logon from a shared folder (where all of our logon scripts are run) which all users and computers have access to, and all users and computers have Read & Execute rights to the script file itself. I'm not sure if it is of any significance that the script was created with my domain account.

Any advice on how to rectify this would be much appreciated.

Thanks.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>