We help IT Professionals succeed at work.

How can I assign a different logon script to an individual user?

Dholland64
Dholland64 asked
on
I have a network with users in 3 locations under the same domain. I have 3 logon scripts (one for each location), and I would like to assign a script to each user based on their home office, i.e if a user works in the vail office I would like the vail.vbs script to run.
The 3 scripts are in c:\windows\sysvol\sysvol\domain\scripts folder. I specified the desired logon script in the profile tab in each users AD properties.  
The scripts each work great, however when users logon each script is run, not just the one that is applicable to that user.
How do I correct this?
Comment
Watch Question

CERTIFIED EXPERT

Commented:
You could create three seperate GPOs and limit the apply GPO to just the users that should get it.

Or you could write a logon script that contains logic to get group membership of the logged on user and process different sections of the script depending on which group they are in.
CERTIFIED EXPERT
Commented:
You need to have just one script with a if condition statements which check the location(subnet) and assign the appropraite drives and printers.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22746765.html

Author

Commented:
Exactly what I was looking for, however not being very experienced with script writing implementation will be the biggest issue. This solution is great because I have users that travel around to different offices, and they would then be able to map the resources they need to work whereever they are.
Thanks for pointing me in the right direction!
CERTIFIED EXPERT

Commented:
You welcome mate.Glad I could help you.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.