Hi,
I´m having trouble with a script. I´m setting variables for printmapping and filemapping through the loginscript. However I found out that when I nest groups Ingrop won´t show the nested groups. I´ve tried to use the UDF Usergroups but I get a "Error in expression: this type of array not supported in expressions.!". What do I do wrong? I post the original script below. This works fine except for the nested groups. Is the Usergroups the UDF to use and how should I use it?

 Code:
$Index = 0
DO
    $Group = ENUMGROUP($Index)
    $Index = $Index + 1

IF INSTR($group, "Grp-site-") 
 $Rawsite = $group
$site = Split(Split($Rawsite, "\")[1], "-")[2]

Endif
UNTIL Len($Group) = 0

$Index2 = 0
DO
    $Group2 = ENUMGROUP($Index2)
    $Index2 = $Index2 + 1

IF INSTR($group2, "Grp-dep-") 
 $Rawdep = $group2
$dep = Split(Split($Rawdep, "\")[1], "-")[2]

Endif
UNTIL Len($Group2) = 0


Edited by lawe009 (2008-11-03 04:13 PM)