Syntax

$Groups = Get-DistributionGroup

$Groups | ForEach-Object {

$group = $_.Name

$members = ”

Download Full Script

Purpose:This script will help the o365 admin export the DL user list (DistributionGroup List).
Modification:DL's name needs to be mentioned in the script
Type:M365 & exchange online
Compatibility:Cloud Only
Tags:
Reference link: