Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Mapping drives based on group membership

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

791 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