Refer to the below URL's it may help you.
https://serverfault.com/questions/532945/list-all-groups-and-their-members-with-powershell-on-win2008r2
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.