PowerTip: Use a PowerShell Cmdlet to Find Group Membership
Summary: Learn how to use a Windows PowerShell cmdlet to find group membership.
I want to use Windows PowerShell to find all members of a particular group in Active Directory. I would like to do this even if the membership is through other groups (indirect). What can I do?
Use the Get-ADGroupMember cmdlet from the ActiveDirectory module with the –Recursive parameter. The following illustrates this technique.
Get-ADGroupMember -Identity ‘Domain Admins’ -Recursive