Login Script and Nested Group Question

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?
 
B

Brandon McCombs

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top