Discussion Locked

Logon Scripts for Domain Users

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm having a problem mapping network printers when a domain user logs into one of our public computers. The scripts work fine when you run them seperately. But, when I have them set up in Group Policy to run when the user logs in, they don't run.

I think I have everything set up correctly, but I'm probably just missing something simple.

Any help would be appreciated.

9 replies

by aaeuvien

If you mean go into Active Directory and select Properties on each user and add the script to the Login Script line of the Profile tab, I did that, it didn't work.

If you mean something else, please elaborate.

by jeff

Have you tried activating the "Always wait for the network at computer startup and logon" policy? (Computer Configuration\Administrative Templates\System\Logon)

This will cause explorer shell to wait until the logon scripts have been processed before loading.

Hope this helps.

by p.j.hutchison

Scripts can only run from GPOs if its Running Windows 2000/XP. Also, make sure the version of VBScript is upto date ie. 5.6 (run cscript to see what version is installed).
Windows 9x/NT cannot run scripts from GPOs, so you must either run the script via a shortcut on the machine or via the User Account Properties on the Profile tab. Check VBScript version as well.

by aaeuvien

The server is a Windows 2k Server with SP4 installed. All of the computers in the domain are Windows XP SP1 computers. Cscript is up to date.

Like I said, the script works fine on the computers if I run log in as anyone in the domain and double click the script. When I set it to run at logon through the GPO it does not work. I even tried setting the Login Script on the Profile tab in user properties to point to \\server\NETLOGON\map_printer_script.vbs and it still didn't work.

by voldar

To use logon scripts through GPO, to an OU, you have to go to that OU - Properties - Group Policy - new Policy - Edit - User Configuration - Log on script. Add (browse) and COPY your vbs script in the place that it is your "browse" command (you'll see is not Netlogon folder). Once you copied it there, click on it and there you go, it is added.
Last issue, never forget! to add in the OU the users or the group of the users you want the script to apply to.

by aaeuvien

That was it! I knew I was forgetting something simple. I had the computers in the OU but not the users who were using them.

Thanks voldar!

This discussion is closed to new replies.