Log in Script

By uzeshan ·
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

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

what's your logic behind putting the script in the sysvol folder?

by Screen Gems In reply to Log in Script
Collapse -

Execute script on log on

by uzeshan In reply to what's your logic behind ...

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.


Collapse -

Verify your group membership and script syntax.

by 1bn0 In reply to Log in Script

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.

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.

Collapse -

This may be a dumb question, but...

by scndtnr In reply to Log in Script

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

Related Discussions

Related Forums