title: Get group membership across several domains
body: <p>Is there a simple way to access group memberships of an Active Directory users not only of the local domain, but others as well? The way I figured should work is looping through all domains in the forest and use the Get-ADPrincipalGroupMembership. Is there a way to do it using the System.DirectoryServices class? Is it even worth it to bother trying to do it with that class? The script is not intended to be quick and dirty and "just work" but rather be somewhat stable and efficient.</p>