See this UDF ComputerInGroup()
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83581

You can try changing the "$oGrp.IsMember" to "$oGrp.Add". That should be just as effective with local and global groups.
_________________________
Home page: http://www.kixhelp.com/hb/