I have a problem that deals with mapping drives for user groups... if a user is a member of more than one of a subset of groups I would like to skip a section of code. The only method I can think of is to use and index variable that inc that variable after checking for each group membership... this would be bulky.. is there a better way.
code:
$index=0
if ingroup("A")
$index=$index+1
endif
if ingroup("B")
$index=$index+1
endif
if ingroup("C")
$index=$index+1
endif
if ingroup("D")
$index=$index+1
endif
if $index > 1
$SKIP = "Y"
else
$skip="N"
endif
This would work but there are many groups... on a side note how does this group checking work? Does it check each time the user logs in for the membership? Does it make requests to the logon server?
Thanks for the help.
_________________________
Austin Henderson