Sometimes, we are asked to send a report off which members are in a DL. If the DL is Dynamic this can be tricky.
$1 = Get-DynamicDistributionGroup "groupname"
Get-Recipient -resultsize unlimited -RecipientPreviewFilter $1.recipientfilter -OrganizationalUnit $1.organizatunit
The above commands will get the list of members. What I did was make a variable of $1 for the dynamic DL. This saved me typing time when I ran the command to get the members.