Win 7 Not Mapping *some* drives based on group membership
I have a VB login script that runs through the Default Domain GPO. It has been running like this for many years in XP, without issue. Some drives map globally to all users, and some are mapped based on group membership. Domain is 2008 (not
R2).
On some Win 7 systems, some of the group-based drive mappings are missing. This is not consistent across the user base. Some users are missing drive T:, for example, while others get T: but are missing J: and K:. T: is one group, and J:
& K: are both from a single different group.
Any ideas?
UAC is OFF on the Win7 PCs.
I tried EnableLinkedConnections on a Win7 PC, and this did NOT fix it.
Running the login script manually does not map the drives.
NET USE from a command prompt DOES map the drives.
Mapping section of login script:
For Each group In user.Groups
groupName = UCase(group.Name)
If 0 = Err.number Then
'ACCOUNTING MAPPING
If "CN=EIS_DET" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=ELAN" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=ENG" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=ACCT_1" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=ACCT_2" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=ACCT_3" = groupName Then
MapDrive "T:", "\\SRVR2\Acctg", network, shell, trace
ElseIf "CN=IB_DET" = groupName Then
MapDrive "J:", "\\SRVR1\SAPPS31", network, shell, trace
MapDrive "K:", "\\SRVR1\SDATA", network, shell, trace
January 5th, 2012 3:46pm
Hi,
I suggest you use Net Use command to check the mapping status.
Also, since your question is related to Script, please post the thread at
http://social.technet.microsoft.com/Forums/en/ITCG/threads/ for help.
Thanks for your understanding.Juke Chou
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
January 9th, 2012 3:08am
Hi,
I suggest you use Net Use command to check the mapping status.
Also, since your question is related to Script, please post the thread at
http://social.technet.microsoft.com/Forums/en/ITCG/threads/ for help.
Thanks for your understanding.Juke Chou
TechNet Community Support
January 9th, 2012 11:07am