FN-GM Posted March 3, 2020 Posted March 3, 2020 (edited) Hello, I have a script that runs fine when run manually. However when setting it as a logon script it doesn't run. Can anyone thing of a reason why please? I have tried the group policy "Run logon script synchronously" and that doesn't work. I have tried hosting the script in various locations such as Netlogon It doesn't run for admin accounts either so it isn't a permission issue. There isn't a software restriction policy in place. Any suggestions would be appreciated. Thanks Edited March 3, 2020 by FN-GM
FN-GM Posted March 5, 2020 Author Posted March 5, 2020 Im sorry to say that isn't the smoking gun. This is configured to 0 already.
Davit2005 Posted March 5, 2020 Posted March 5, 2020 I'm guessing you have tried logging in as an admin on the PC and doing a %logonserver% in the run window to see if you can actually see the logon script in the netlogon folder?
DaveTheTech Posted March 5, 2020 Posted March 5, 2020 Does the script work as it should when triggered manually? Could change what the script is doing to simply open calc.exe. Does SYSTEM have rights to the login script?
ass17 Posted March 5, 2020 Posted March 5, 2020 (edited) What type is the login script? Vbscript, Batch file etc?? I’d also go back to basics, put the script in the net login folder. If you have multiple DCs, make sure the script replicated as normal. Also make sure the permissions on the script have “Domain Users” set. Then make sure the logonscript path in the users AD profile tab is set correctly... Edited March 5, 2020 by ass17
FN-GM Posted March 5, 2020 Author Posted March 5, 2020 I'm guessing you have tried logging in as an admin on the PC and doing a %logonserver% in the run window to see if you can actually see the logon script in the netlogon folder? Yep its there. I have also put the script in a standard share and no difference. Does the script work as it should when triggered manually? Could change what the script is doing to simply open calc.exe. Does SYSTEM have rights to the login script? It works fine when triggered manually. The system does have rights. I have even set it to "everyone". What type is the login script? Vbscript, Batch file etc?? I’d also go back to basics, put the script in the net login folder. If you have multiple DCs, make sure the script replicated as normal. Also make sure the permissions on the script have “Domain Users” set. Then make sure the logonscript path in the users AD profile tab is set correctly... Its a VBS script. I have done all those steps apart from the AD Profile tab. I am using group policy for this.
ass17 Posted March 6, 2020 Posted March 6, 2020 I have done all those steps apart from the AD Profile tab. I am using group policy for this. Try the script in the Profile Tab just to prove its a GPO issue over anything else, at least then you have a clear pathway to go down in terms of troubleshooting..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now