Solved

Mapping drives based on group membership

Posted on 2013-06-11
3
389 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

740 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