Login Script and Nested Group Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have a login script, one of the funtions in it is like so:

If IsMember("wwwGroup") Then
WWWGroup
End If
..
..
..
Function MapWWWGroup
'wscript.echo "Member of WWWInstructors group"
MapDrive "w:", "\\anweb01\instructors\"& WshNetwork.UserName
End Function

The question is this, This seems to only work if the user's account is
directly listed as a member of that group, if, for isntance, the user is a
member of Sales, and Sales is a member of WWWGroup, the portion of the script
does not work. Is this by design? If so, how could I work around that?
 
Space said:
We have a login script, one of the funtions in it is like so:

If IsMember("wwwGroup") Then
WWWGroup
End If
.
.
.
Function MapWWWGroup
'wscript.echo "Member of WWWInstructors group"
MapDrive "w:", "\\anweb01\instructors\"& WshNetwork.UserName
End Function

The question is this, This seems to only work if the user's account is
directly listed as a member of that group, if, for isntance, the user is a
member of Sales, and Sales is a member of WWWGroup, the portion of the script
does not work. Is this by design? If so, how could I work around that?

Enumerate through all the members of each group recursively since some
groups have, as you say, other groups as members. Enumerate through
those nested groups until you find just user accounts and then go back
up your tree and go to the next nested group and so on.
 
You lost me. How do I do that?

Brandon McCombs said:
Enumerate through all the members of each group recursively since some
groups have, as you say, other groups as members. Enumerate through
those nested groups until you find just user accounts and then go back
up your tree and go to the next nested group and so on.
 
Back
Top