Can we run a specific login script based on Active Directory site?

We have 2 locations and employees frequently travel back and forth between them.  Is it possible to have users run a separate login script based on the location they are currently located based on active directory sites & services?
gtelnetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike KlineCommented:
What you can do is create your login scripts and link them at the site level.  Group polices can be linked at the site, domain, and OU level.

Thanks

Mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike KlineCommented:
Just a quick follow up in GPMC under sites right click and select show sites then you can add your sites and from there you can link a GPO with your script to the site.

Thanks

Mike
0
wantabe2Commented:
Absolutely! Just apply the script to login GPO on the different OUs
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

merowingerCommented:
Another possibility is to use wmi filter linked on the policies which queries the ip subnets
0
gtelnetAuthor Commented:
@mkline71 Won't that only apply the login script for the OU that the user's account resides in?
0
Mike KlineCommented:
It will apply to that active directory site because you are linking it at the site level not the OU level.

Thanks

Mike
0
gtelnetAuthor Commented:
Oh... I see what your saying now... I had missed your second comment so I wasn't seeing the sites...

Thanks, I think I can figure it out from here!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.