1. Get
-DistributionGroupMember from a regular DL
Get -DistributionGroupMember -identity "mydl" | Export-Csv C:\MyFile.Csv |
Where mydl is our distribution group, and myfile.csv is the resulting CSV file.
2. Get
-DistributionGroupMember from a Dynamic DL
$members = Get-DynamicDistributionGroup -Identity "dynamicgroupname"
Get-Recipient -RecipientPreviewFilter $members.RecipientFilter > C:\MyDDLmembersall.txt
No comments:
Post a Comment