Question Locked

Log in Script

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

Hi All,
I have problem with log in script.

I have placed my log inscript in C:\windows\sysvol\sysvol\domain\scripts but when a user logs in the script doesn't work. Do I have assigned my script to a group or user.

When I execute the script its mount all network drives but tells me that the user is not in any group. I can see that the user is in a group.

Many thanks

5 replies

by uzeshan

Execute script on log on, I may be wrong. Basically I want my script to execute when an user logs in to network. That script map all network drives. I can run it manually.

thanks

by 1bn0

First. put your logon script in \\DC-server\netlogon. Thats the path the client computers are connecting to. Put your server name in place of DC-server. If you have more than DomainController, the logon script(s) get copied/replicated to the corresponding location on all of the servers.

Next. Check your script syntax.

If the user does not belong to any group Windows will execute EVERY line in the script as if it applies to the user. (Found this out the hard way).

Based on that , It sounds like the user account you are testing with is not properly assigned to a group.

If you are not proficient in scripting, I would recommend Logon Script Generator. Downloadable from this site.

http://www.primaltools.com/downloads/communitytools/

It uses a HTA (WebApp) interface with drop down boxes and generates the script after you select your choices.

You need to create the drives.txt and printers.txt first before using the application.

by scndtnr

did you set the user properties in Active Directory to run the login script (it's on the Profile tab...)?

This discussion is closed to new replies.