Here is the code snippet to chew on:
Code:

Function ComputerInGroup($group,optional $Domain)
Dim $oGrp
if not $domain $domain=@domain EndIf
$oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
if @error exit 1 EndIf

if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
$ComputerInGroup=1
else
$ComputerInGroup=0
endif
EndFunction

If ComputerInGroup('PREMCOR_SMS_EXCLUSION')=1
? 'Computer will not install SMS'
Else
? 'Computer will install SMS'
EndIf

Sleep 5



Where PREMCOR_SMS_EXCLUSION is a Global Group that only contains the local groups. This does not work.

If I exchange PREMCOR_SMS_EXCLUSION for HQ_SMS_EXCLUSION - which is the local group for HQ, of which the computer is a member, the script works fine.

Am I making sense?
_________________________
-- oobnuker - .KIX hack - no really.