Exchange 2010 export all users in DistList including nested Distribution Lists

Should be a pretty quick one here.

I need to export the contents of a DL named "broadcast" on an Exchange 2010 server.

The catch is inside of this DL are more DLs and inside of those even more DLs and so on and so on.

I found this but when I choose the options for the dynamic lists, it crashes out with :

Cannot validate argument on parameter 'RecipientPreviewFilter'. The argument is null or empty. Supply an argument that
is not null or empty and then try the command again.
    + CategoryInfo          : InvalidData: (:) [Get-Recipient], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Get-Recipient
    + PSComputerName        : davnc-exch01.ci.davidson.nc.us

/ : Attempted to divide by zero.
At C:\Users\nucentric_domain\Desktop\DistributionGroupMemberReport.ps1:418 char:114
+ Write-Progress -activity "Scanning Groups . . ." -status "Scanned: $i of $($allDg.Count)" -percentComplete (($i / <<<
<  $allDg.Count)  * 100)
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException

Thanks.
LVL 33
Scott CSenior Systems EnginerAsked:
Who is Participating?
 
Scott CConnect With a Mentor Senior Systems EnginerAuthor Commented:
Yeah, that didn't work.

After some digging I found the PS command:  Ran the PS command :  Get-ADGroupMember broadcast -Recursive

This returned the names I needed.
0
 
RoninCommented:
This might help to get the members of the Dynamic Groups. Also official guidance.
0
 
Scott CSenior Systems EnginerAuthor Commented:
Looking at the definition of a Dynamic Distribution Group, I don't think that's what I have.  It's just a regular distribution group.  It's just nesting other distribution groups.

Also, please don't post blank links.
0
 
Scott CSenior Systems EnginerAuthor Commented:
Found solution after researching.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.