Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Policy and Logon Script help

Status
Not open for further replies.

zarkon4

MIS
Dec 16, 2003
641
US
I am obviously missing something here and not sure what it is. I have created a logon script using vbs it consists of the following and is named logon.vbs

Set WSHShell = CreateObject("WScript.Shell")
WSHShell.Run "\\Server\Directory\Program.exe"
Set WSHShell = Nothing

It is located in the following directory on the domain controller
C:\WINNT\system32\GroupPolicy\User\Scripts\Logon

I have edited the Group Policy on the DC to use this script as a logon script.

It does not execute for anyone in the domain, it just doesn't happen and I am puzzled as to why. Am I missing something?
 
I am still struggling with this, and am completely confounded. Can anyone help?
 
I think you may be dumping it in the wrong path.
Try:
%systemroot%\sysvol\sysvol\<domain_DNS_name>\scripts
 
Instead of putting it in that directory. Try putting it in either \\domaincontoller\netlogon or the BEST would be when you are setting the logon script in group policies click "show files". It will open an empty folder, place the script in there.

Now close the folder, click "Add" > "Browse" and now you should see the file you just placed in there. This will ensure that all users will have access to the script and it will be replicated between you domain controllers.

non-admins won't have access to c:\winnt of your domain controller.
 
My script is currently in all of those locations and still does not execute.
 
Try putting it in the Netlogon directory as stated above. Then put the name of the script or batch file in the User Properties>profile tab. There is a place for login script there.
 
I was trying to use a global login script and thought I could do it without having to modify every user's properties on the domain. Is this what I MUST do in order to have a login script?
 
search M$ script center you my find a VB script to modify the properties of all users. You may just need to modify it a little. I don't know VB Script so I can't offer to much more help.
 
I am adding it to the group policy for everyone, I have put it in all the locations and it still does not execute. I have looked at the group policy on some pc's and have noticed the group policy is not getting distributed to the pc's. I believe this is the problem. Any other ideas?
 
What is you client OS?

Try running gpresult and make sure that your group policies aren't getting an error, etc.
 
Also don't forget to check the permissions on the policy to make Authenticated users have atleast have 'Read' permission on the policy. They should be default -- but things happen.
 
I am running Windows 2000 server on the DC and clients are windows 2000 sp4.
I ran gpresult and the policy is being distributed.
 
I am having similar problems but I found that if the user in question is made a local administrator, he gets the logon script - out of curiosity does yours run if the user is administrator?
 
I myself am a local admin, it does not run. Also, we do not set our users up to be admins, power users ok but not admins.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top