PowerDDG

by AssistIT Tech

Dynamic distribution groups for Exchange Online — build rules with AND / OR logic, manage groups, batch your changes, and print customer reports.

Action & group

Recipient filter (text)

How do I get a group's current filter?
  1. Connect: Connect-ExchangeOnline
  2. List your dynamic groups: Get-DynamicDistributionGroup | Select-Object Name,PrimarySmtpAddress
  3. Show one group's filter: (Get-DynamicDistributionGroup 'Group Name').RecipientFilter
  4. Copy the output, paste it below, and click Load into editor.
How do I update a group?
  1. Paste and load the group's current filter (above), or build conditions from scratch.
  2. Switch the action to Update existing filter and enter the group's name.
  3. Run the test command to preview who will match.
  4. Copy and run the generated Set-DynamicDistributionGroup command — it replaces the whole filter, not just part of it.

Membership requirements

Quick add common requirements:

“Contains / starts with / ends with” add the * wildcards for you. Values with apostrophes are escaped automatically.

Generated command

    
Test the filter first (recommended)

    

Batch script

Nothing in the batch yet — build or edit a group, then add it. Commands pile up here so you can run them all in one shot.

Notes

  • Requires the Exchange Online module: Install-Module ExchangeOnlineManagement, then Connect-ExchangeOnline.
  • Update existing filter replaces the whole filter — it does not add to it. Build the complete rule set here.
  • Exchange automatically excludes system mailboxes from every dynamic group; you don't need to filter them out.
  • Membership is evaluated when mail is sent, so changes to user attributes apply automatically.