HELP!!! Logon script not processing Group membership or personal drive mapp - TechRepublic
Question
June 9, 2008 at 05:39 AM
1bn0

HELP!!! Logon script not processing Group membership or personal drive mapp

by 1bn0 . Updated 15 years, 9 months ago

I have a vbs logon script that mapps drive letters based on group membership. Some of the drives are just mapped for everyone.

The straight drive mappings work O.K.
The drive mappings based on group membership are not happening.

The clients are also failing to get the drive mapping for the personal drive.e.g P: gets set to \\server1\%UserName%. This is configured in the user profile in ACtive Directory Users and Computers.

excerpt from script:

‘Delete ALL current drive mappings
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run (“net use * /delete /yes”)

‘Wait six seconds so the drive disconnects complete.
WScript.sleep 6000

‘Map network drives
MapIt “G:”,”\\server1\shared”

If IsAMemberOf(objNetwork.UserDomain,objNetwork.UserName,”Accounting”) Then MapIt “I:”,”\\server1\ACCT”

MapIt “Q:”,”\\server\apps”

If IsAMemberOf(objNetwork.UserDomain,objNetwork.UserName,”Managers”) Then MapIt “R:”,”\\server1\SmartBoard”

The script was orignally generated using Sapien Technologies free Logon Script Generator. Then edited manually.

This seems to be happening no matter which server is acting as the lgoonserer for the client.

This discussion is locked

All Comments