List “Dynamic Distribution Group” members | EMC PowerShell


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/40/d806441738/htdocs/clickandbuilds/edwardsd/work/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

If you need to get a list of AD users in “Dynamic Distribution Groups” then you can use this PowerShell script… here. Only problem is that the script does not export details of Dynamic Distribution Group.

You can list DDG users by running this script using the Exchange Management Shell (EMC)

$Group = Get-DynamicDistributionGroup -Identity "Staff-UK"
Get-Recipient -Filter $Group.RecipientFilter -OrganizationalUnit “domain.com/UK_Users_OU/Branch_Users” | Out-File c:\Staff-UK.txt

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.