this is a little bit on the rough side but it should get the job done.

code:

break on cls
; This script needs the NT Resource Kit tool "LOCAL"
; You also need a list of target computer to scan, the list must be in the UNC format
; \\computer1
; \\computer2
; ....
;------------------------------------------------------------------------------------

$file = "clist.dat" ;A target list of computers to scan
$tempfile = "temp.txt"
$globalgroup = "Domain Admins" ;The global group that you are searching for
$localgroup = "Administrators" ;the local group that you are looking for $globalgroup in

$q = open(1,$file,2)
$computer = readline(1)
do
select
case exist("$computer\admin$\") = 1
shell '%comspec% /c local $localgroup $computer | find /i "$globalgroup" > $tempfile'
if getfilesize("$tempfile") <> 0
$q = open(2,$tempfile,2)
$return = readline(2)
$q = close(2)
del $tempfile
? "$Computer has Global group $return in the local $localgroup"
Else
? "$globalgroup can not be found the the local $localgroup"
endif
case exist("$computer\admin$\") = 0
? "Can't connect to $computer OR you have insufecent rights"

endselect
$computer = readline(1)
until @error <> 0
$q = close(1)
exit


Bryce