Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • Last Modified:

Edit Exchange 2007 Dynamic Distribution Group

Hello everyone,

I would like to edit a dynamic distribution group in Exchange 2007, the only way possible it seems is through the command shell. In the EMC on the properties of the dynamic distribution group on the Filter tab, I copied the data in the Recipients Filter box and edited it to what I needed.

This is what I want the filter to look like, I just copied what was there and edited it:
Set-DynamicDistributionGroup -Identity "ALLEmployees_Corporate -recipientfilter {((((((((((((RecipientType -eq 'UserMailbox') -and (Office -eq 'HQ'))) -or (Office -eq 'HQ1'))) -or (Office -eq 'HQ2'))) -or (Office -eq 'HEADQUAR'))) -or (Office -eq 'HQ3'))) -and (-not(Name -like 'SystemMailbox{*')))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')))}


But how do I now apply it to the dynamic distribution group?

Thanks!
0
tolinrome
Asked:
tolinrome
1 Solution
 
Adam BrownSr Solutions ArchitectCommented:
You should just be able to open the Exchange Management shell, the copy and paste what you have there into it, then hit enter. That will apply the changes to the group.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now