I'm currently trying to enumerate a list of computer accounts that belong to a group. I think I'm going to need to adsi bind to the group but I can't find the right syntax anywhere. Here's what I have so far for reference.

My end goal is just be able to list out all the members of a group.

code:
$Computer = GetObject("WinNT://" + @domain + "/" + @wksta + "$$")    
for each $Group in $Computer.Groups
?$Group.Name
if $Group = "somegroup"
$Members = $Group.Members
for each $member in $Members
?$member.name
next
endif
next