Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using VBS to map a network drive

$
0
0

Good day,

I have a script to map drives by membership within a group however there is a conflict.

We have security groups for all of our printers that the users are added to when they need access to that printer. This is done by a VBScript referenced through a batch file used during logging in. The conflict is that we have printers named things like CityMarketing, CityPurchasing, etc. and security groups named Marketing and Purchasing. So if a user is a member of that printer group but not a member of that security group they can still get the printer but not the file resources for that security group/department. However when the new drive mappings script runs it is looking for membership of the Marketing and Purchasing group and if you are a member of the CityMarketing printer group it still thinks you are a member of the department security group.

So I need a way to have the script look at the exact match of the word for example:

If InStr(sGroups, LCase("Marketing")) Then ...

I hope that makes sense.


Viewing all articles
Browse latest Browse all 15028

Trending Articles