Exchange Server 2007 Tips
[LEFT][B]Use Cmdlets to Modify Dynamic Distribution Groups [/B]
In the Exchange Management Shell, you can modify the filters and conditions associated with a dynamic distribution group using the Set-DynamicDistribution-Group cmdlet. This cmdlet has several other uses as well. You can use it to:
[LIST][*]Specify a dedicated expansion server to enhance query processing. Set the –ExpansionServer parameter to the identity of the Global Catalog server to use.[*]Upgrade dynamic distribution groups created for Exchange 2003 and Exchange 2000 to allow incompatible dynamic distribution groups to be rewritten to work with Exchange Server 2007. Set –ForceUpgrade $true, and then modify any incompatible included recipients or recipient filters as necessary.[/LIST]
The following demonstrates the the syntax and usage for the Set-DynamicDistributionGroup cmdlet.
Syntax
[CODE]
Set-DynamicDistributionGroup -Identity 'GroupIdentity'
[-Alias 'NewAlias']
[-AcceptMessagesOnlyFrom 'Recipient']
[-AcceptMessagesOnlyFromDLMembers 'Recipient']
[-ConditionalCompany 'Values'] [-ConditionalDepartment 'Values']
[-ConditionalStateOrProvince 'Values'] [-DisplayName 'Name']
[-DisplayName 'Name'] [-DomainController 'DCName']
[-EmailAddresses 'ProxyAddress']
[-EmailAddressPolicyEnabled <$false|$true>]
[-ExpansionServer 'Server'] [-ForceUpgrade <$false|$true>]
[-GrantSendOnBehalfTo 'Mailbox']
[-HiddenFromAddressListsEnabled <$false|$true>]
[-IncludedRecipients 'Recipients'] [-ManagedBy 'RecipientId']
[-MaxReceiveSize 'Size'] [-MaxSendSize 'Size']
[-Name 'Name'] [-Notes 'Value'] [-PrimarySmtpAddress 'SmtpAddress']
[–RecipientContainer 'OUName'] [–RecipientFilter 'String']
[-RejectMessagesFrom 'Recipient']
[-RejectMessagesFromDLMembers 'Recipient']
[-ReportToManagerEnabled <$false|$true>]
[-ReportToOriginatorEnabled <$false|$true>]
[-RequireSenderAuthenticationEnabled <$false|$true>]
[-SendOofMessageToOriginatorEnabled <$false|$true>]
[-SimpleDisplayName 'Name'] [-WindowsEmailAddress 'SmtpAddress']
[/CODE]
[B]
Usage Example 1[/B]
[CODE]
Set-DynamicDistributionGroup –Identity 'cpandl.com/Users/CrossSales'
-IncludedRecipients 'Recipients'
-ConditionalCompany 'City Power $ Light'
-ConditionalDepartment 'Sales','Accounting'
-ConditionalStateOrProvince 'Washington','Idaho','Oregon'
-RecipientContainer 'cpandl.com'
[/CODE]
[B]
Usage Example 2[/B]
[CODE]
Set-DynamicDistributionGroup –Identity 'cpandl.com/Users/CrossSales'
–ForceUpgrade $true
[/CODE]
[B]
Usage Example 3[/B]
[CODE]
Set-DynamicDistributionGroup –Identity 'cpandl.com/Users/CrossSales'
–ExpansionServer 'CorpSvr127'
[/CODE]
[/LEFT]