Try this. It's for your computer. If you want to use in a login script you will need to create a data file to read-in the computer names, and a read/write location for the login script to send data.
Code:
$NCCgroup = getobject("WinNT://./administrators")
;Change Domain_HELPDESK to group you want to check

$checkvalue = "Domain_HELPDESK is not in local Admin Group" ; Domain_HELPDESK is Global Group to check
for each $member in $NCCgroup.members
if $member.name = "Domain_HELPDESK"
$checkvalue = "Domain_HELPDESK is in the local Admin Group"
endif
next
$NCCgroup = 0
? ? "$checkvalue" ? ? shell "%comspec% /c pause"

exit

_________________________
Box
FACTA NON VERBA