I wonder if I can configure a group dynamic to send mail only to members of a specified OU in AD, I am tempted to do the powershell
I wonder if I can configure a group dynamic to send mail only to members of a specified OU in AD, I am tempted to do the powershell the following command line: Set-DynamicDistributionGroup-Identity-grupodeteste2 RecipientFilter "((RecipientType-eq 'UserMailbox' OrganizationalUnit-and-eq 'Name')-and-not (Name-like 'SystemMailbox (*')-and-not (Name-like 'CAS_ {*'))" Anybody know how I do it?
April 20th, 2010 11:57pm

OrganizationalUnit is not a property that can be used in the recipient filter, but you can use the OrganizationalUnit parameter to do that, here's an example: New-DynamicDistributionGroup -Name "Marketing" -Alias "Marketing" -OrganizationalUnit "contoso.com/Marketing" -IncludedRecipients "MailboxUsers"
Free Windows Admin Tool Kit Click here and download it now
April 21st, 2010 12:58am

Yes, you can use the -RecipientContainer paramater to specify the DN of the OU where your recipients are located. Tony
April 21st, 2010 1:05am

Hi, Agree with Tony, you can use -RecipientContainer to specify the OU. But the -OrganizationalUnit specifies where to create the dynamic distribution group in AD. If you want to create a DDG, the cmdlet can be: New-DynamicDistributionGroup -Name "Marketing" -Alias "Marketing" -IncludedRecipients "MailboxUsers" -OrganizationalUnit "Contoso.com/Users" -RecipientContainer "Contoso.com" More information: New-DynamicDistributionGroup http://technet.microsoft.com/en-us/library/bb125127(EXCHG.80).aspx Frank Wang
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2010 8:46am

Hi, Agree with Tony, you can use -RecipientContainer to specify the OU. But the -OrganizationalUnit specifies where to create the dynamic distribution group in AD. If you want to create a DDG, the cmdlet can be: New-DynamicDistributionGroup -Name "Marketing" -Alias "Marketing" -IncludedRecipients "MailboxUsers" -OrganizationalUnit "Contoso.com/Users" -RecipientContainer "Contoso.com" More information: New-DynamicDistributionGroup http://technet.microsoft.com/en-us/library/bb125127(EXCHG.80).aspx Frank Wang Yep, my fault. I had the OrganizationalUnit parameter confused with the RecipientConainer parameter.
April 22nd, 2010 6:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics