thanks, this helps.

still little confused on how to do something based on a Computers membership of an AD group. even if the group is nested..
basically a local group in domain group..

I can get it to work when its directly under one AD group using Case PcInGroup "domain\Groupname") = 1

but if its nested into another group it doesn't see it... is there a way to check all the groups nested to discover the PC?