Solved

Mapping drives based on group membership

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

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now