not sure if this is best place or on the 2003 server bit.
i have started to use abe on a 2003 server - basically what i want to do is have a root directory called shared and then i was going to give rights to this sya to GLS-server
. rights would just be for this dir and very limitied.
inside the shared directory i would then have all the departmental drive mappings for this server - so abe would mean they can only see the ones that have rights to - each directory is also explicitly controlled by a group
i had hoped to add these sub groups as a member of GLS-server group so that in the script i could basically say if member of gls-server then map y: to server\shared but it cannot enumerate the nested groups
so i have had to just remap each group which is quick long
example below
on error resume next
Set wshNetwork = CreateObject("WScript.Network")
'****************************************************************************
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
strGroups = Join(CurrentUser.getex("MemberOf"))
strComputerName = wshNetwork.ComputerName
If Instr(1, strGroups, "cn=finance", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If Instr(1, strGroups, "cn=payroll", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If InStr(1, strGroups, "cn=claims", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
i have started to use abe on a 2003 server - basically what i want to do is have a root directory called shared and then i was going to give rights to this sya to GLS-server
. rights would just be for this dir and very limitied.
inside the shared directory i would then have all the departmental drive mappings for this server - so abe would mean they can only see the ones that have rights to - each directory is also explicitly controlled by a group
i had hoped to add these sub groups as a member of GLS-server group so that in the script i could basically say if member of gls-server then map y: to server\shared but it cannot enumerate the nested groups
so i have had to just remap each group which is quick long
example below
on error resume next
Set wshNetwork = CreateObject("WScript.Network")
'****************************************************************************
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
strGroups = Join(CurrentUser.getex("MemberOf"))
strComputerName = wshNetwork.ComputerName
If Instr(1, strGroups, "cn=finance", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If Instr(1, strGroups, "cn=payroll", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If InStr(1, strGroups, "cn=claims", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"