Syntax
New-DynamicDistributionGroup -Name ExchangeName
-IncludedRecipients <None, UserMail, MailContacts, MailGroups, Resources,
AllRecipients> [-Alias ExchangeAlias
]
[-DisplayName DisplayName
] [-OrganizationalUnit OUName
]
[-ConditionalCompany CompanyNameFilter1
, CompanyNameFilter2
,...]
[-ConditionalCustomAttributeX Value1, Value2
,...]
[-ConditionalDepartment DeptNameFilter1, DeptNameFilter2
, ... ]
[-ConditionalStateOrProvince StateNameFilter1, StateNameFilter2, ...]
[-RecipientContainer ApplyFilterContainer] {AddtlParams}
New-DynamicDistributionGroup -Name ExchangeName
-RecipientFilter Filter
[-Alias ExchangeAlias
] [-DisplayName DisplayName
] [-OrganizationalUnit
OUName
] [-RecipientContainer ApplyFilterContainer
] {AddtlParams}
{AddtlParams}
[-ArbitrationMailbox ModeratorMailbox
] [-DomainController
FullyQualifiedName
] [-ModeratedBy Moderators
] [-ModerationEnabled <$true
| $false>] [-Organization OrgName
] [-PrimarySmtpAddress SmtpAddress
]
[-SendModerationNotifications <Never | Internal | Always>]
Usage
New-DynamicDistributionGroup -Name 'CrossSales'
-OrganizationalUnit 'cpandl.com/Users' -DisplayName 'CrossSales'
-Alias 'CrossSales'
-IncludedRecipients 'UserMail, MailContacts, MailGroups'
-ConditionalCompany 'City Power & Light'
-ConditionalDepartment 'Sales','Marketing'
-ConditionalStateOrProvince 'Washington','Oregon','California'
-RecipientContainer 'cpandl.com'