Link to home
Start Free TrialLog in
Avatar of ACS2012
ACS2012

asked on

Assign GPO depend on the Group Membership in windows 2008 R2 environment

Dear All,

I’m looking for a way to configure the GPO to do the following:
Assign a “Map Network Drive” for users, but what I’m looking for is to assign the Map depend on the group membership, for example:

Jon ... Member of Sales group … will have “sales” Map Network Drive when he is login.
Ram … member of ACC group … will have “ACC” Map Network Drive when he is login.

So the group policy will check the membership then assign the map.
Do I can implement that within the GPO (references GPO)?
I have only Windows 2008 R2 SP1 domain controllers in my environment.

Please help

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Use .vbs script for logon script.

strDrive = "Z:"
strPath = "\\server\share"

Set objUser = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & objUser.UserName)
strGroup = LCase(Join(CurrentUser.MemberOf))

Const AdGroup = "cn=Group Name"

If inStr(strGroup, lcase(AdGroup)) then
  objNetwork.MapNetworkDrive strDrive, strPath

Open in new window

YAK!! Forget VB Scripts.

Go with group policy preferences and Item Level Targeting.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ACS2012
ACS2012

ASKER

thanks all.

what if my OS clients are full updated, do i have to install the Client Side Extensions for GPP?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial