Hello,<\/p>\n
Is there a Powershell command I can run from a Server 2012 R2 DC that will output a list of all Distribution Groups and their respective members?<\/p>\n
Thanks!<\/p>","upvoteCount":3,"answerCount":6,"datePublished":"2019-06-20T14:47:27.000Z","author":{"@type":"Person","name":"hankvare","url":"https://community.spiceworks.com/u/hankvare"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello,<\/p>\n
Is there a Powershell command I can run from a Server 2012 R2 DC that will output a list of all Distribution Groups and their respective members?<\/p>\n
Thanks!<\/p>","upvoteCount":3,"datePublished":"2019-06-20T14:47:27.000Z","url":"https://community.spiceworks.com/t/list-of-distribution-groups-and-members/717369/1","author":{"@type":"Person","name":"hankvare","url":"https://community.spiceworks.com/u/hankvare"}},{"@type":"Answer","text":"
not a single command no.<\/p>\n
But you can do it with 2 commands.<\/p>\n
command to list all the groups<\/p>\n<\/li>\n
to get all the members for each group<\/p>\n<\/li>\n<\/ol>\n
Give it a shot and post your code if you’re stuck<\/p>\n
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n