Thanx for the code, I managed to enum the groups too, but this looks better.. How can I put those "admin" groups in an array so that I can use the found groups later in my script?? I allready found a enumgrouparray function on the net, but I can't get it to work... Can you help me out again??