Say, if I have a DN for a workstation "CN=XP3-1,CN=Computers,DC=mydomain,DC=local".
How do you write a filter to list all groups that this workstation is a member of?
$filter = "(&(objectCategory=group)(objectClass=group)(name=*)(member=" & $workstationDN & "))"
PS. Sorry, my knowledge of PowerShell can fit into a thimble.