EOL, Export All Distribution Group (with A Certain Name in it) and their Members to CSV


  • Can someone help me spin up a quick script/command that will export all DistoGroups (That contains the word "MARAD" in it) and their members and export to csv file .

    This one will only do it by assigning the name. The issue is that we have over 1000 DistroGoups for that department with the name MARAD in it. 

    Get-DistributionGroupMember -Identity MARAD | Select Name, PrimarySmtpAddress | Export-csv C:\Temp\testmembers.csv -NoTypeInformation



    Stephen Ellis

    Monday, June 11, 2018 5:56 PM