Solved

Mapping drives based on group membership

Posted on 2013-06-11
3
386 Views
Last Modified: 2013-06-12
Hi All,

I have a question regarding my VB script. I have the following drive mapping for my logon script:

If IsMemberOfGroup(objUser, "UK_Site_Users") = True Then
      objNetwork.MapNetworkDrive "G:", "\\servers\groups", true
End If

The drive mapping isn't working because of the group im using. I have recently set up the group "uk_site_users" to which I added 2 further groups "Uk_site1" and "Uk_site2" both which contain users.

If I map the drive using either "Uk_site1" and "Uk_site2" in the script - it works fine. Soon as I try and use the Uk_Site_users group it doesnt work.

Is there an issue with using this group because its direct members are groups and not users?
0
Comment
Question by:MJB2011
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
bepsoccer1 earned 500 total points
ID: 39239545
Why not just use the group policy setting to add a mapped drive, http://technet.microsoft.com/en-us/library/cc770902.aspx and filter based on group membership. http://technet.microsoft.com/en-us/library/cc786636(v=ws.10).aspx
0
 

Author Comment

by:MJB2011
ID: 39239549
Id rather continue with script
0
 
LVL 4

Expert Comment

by:bepsoccer1
ID: 39239562
I would ask why, but not necessary.  I don't know if VBS can enumerate inherited group membership.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question