Not too correct: I ran this against a local group checking for group membership of a global group successfully... and these groups are organized in different OUs.

Code:

break on

$what = "GlobalGroupname"
$Group = "LocalGroupname"
$ingroup = 0

$objGroup = getobject("WinNT://MyADDomain/" + $Group + ",group")
if not @error
for each $member in $objGroup.Members
if $member.Name = $what
$ingroup = 1
endif
next
endif

iif($ingroup,$what + " is member of " + $Group, $user + " is not member of " + $Group)

get $

exit 0



So, SASKINN, did you try providing the name of the domain instead of using @domain ?
_________________________