Jump to content

Recommended Posts

Posted (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 by FN-GM
Posted
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?
Posted

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?

Posted (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 by ass17
Posted
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.

Posted

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..

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...