Server 2012 R2 Domain login script question

Hi everyone -

Is there a way in Server 2012 R2 to create a login script (most likely a VB Script, I would think) that will map network drives based on whether the user is a member of a particular security group?

For example, if I have users that are members of a domain and they should have access to specific corporate data only if they are managers or executives, can I create a share, assign the members of the "Managers" and "Executives" groups permissions to that share, and then have the login script map the necessary drive letter only if the user who's logging in is a member of one of those groups?

Any info would be greatly appreciated.

Thanks much!  :-)
Chris CollinsOwnerAsked:
Who is Participating?
 
Daryl BamforthConnect With a Mentor Technical ExpertCommented:
Yes, you can either do this with a login script or with GPOs.

If your using a login script, do it in powershell (VBS is outdated). You can have a GPO specifically applied to those maanagers/executives that maps the drive based on their group.

Great article here for it https://blogs.technet.microsoft.com/askds/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership/
1
 
SeanConnect With a Mentor System EngineerCommented:
You can do this with a login script just fine but why wouldn't you want to use a GPO for this? If you add a "mapped drives" GPO to the top level of your domain, under User Config -> Preferences -> Windows Settings and drive Maps you can add mapped drives.  Then do Item level targeting on each drive to apply to only the user's security groups or OUs. Done and easy.
1
 
Chris CollinsOwnerAuthor Commented:
Sorry it took me a few days to get back here. Both of these comments were very helpful and the article that you recommended was a terrific resource!

Thank you very much!

:-)
0
 
Daryl BamforthTechnical ExpertCommented:
No worries, glad it helped.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.