Saturday, July 12, 2008

Exchange2007:Specify Address Lists in Outlook Web Access

For multiple hostings, when users from Telus access OWA, they should see the Global Address List 'Telus', when users from Shaw access OWA, they should see the Global Address List 'Shaw', when users from TLC access OWA, they should see the Global Address List 'TLC', etc.

How?
Set-OwaVirtualDirectory -Identity 'owa (Default Web Site)' -AllAddressListsEnabled $false

New-GlobalAddressList -Name 'Shaw' -IncludedRecipients 'AllRecipients' -ConditionalCompany 'shaw'

New-GlobalAddressList -Name 'Telus' -IncludedRecipients 'AllRecipients' -ConditionalCompany 'Telus'

New-GlobalAddressList -Name 'Rogers' -IncludedRecipients 'AllRecipients' -ConditionalCompany 'Rogers'

Create mailboxes: SeungBum Yoo, Kevin Smith, and Kaiming Liao
set-user -Identity 'Kaiming Liao' -Company 'Shaw'
set-user -Identity 'SeungBum Yoo' -Company 'Rogers'
set-user -Identity 'Kevin Smith' -Company 'Telus'


Update-GlobalAddressList ‘Telus’

$global=get-globalAddresslist ‘Telus’
Get-Recipient -RecipientPreviewFilter $global.RecipientFilter


Kevin Smith

Update-GlobalAddressList ‘Shaw’
$global=get-globalAddresslist ‘Shaw’
Get-Recipient -RecipientPreviewFilter $global.RecipientFilter

Kaiming Liao

Update-GlobalAddressList ‘Rogers
$global=get-globalAddresslist ‘Rogers
Get-Recipient -RecipientPreviewFilter $global.RecipientFilter


SeungBum Yoo

-------
Get-GlobalAddressList format-list DistinguishedName
DistinguishedName : CN=Shaw,CN=All Global Address Lists,CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com

DistinguishedName : CN=Telus,CN=All Global Address Lists,CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com

DistinguishedName : CN=Rogers,CN=All Global Address Lists, CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com

ADSIEDIT.msc


Default Naming Context [USA.Terrace.Com]
-DC=Terrace,DC=COM
Locate CN=Kaiming Liao --Properties
Locate the msExchQueryBaseDN

Set it to CN=Shaw,CN=All Global Address Lists,CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com



msExchQueryBaseDN of SeungBum Yoo will be set to CN=Rogers,CN=All Global Address Lists, CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com

msExchQueryBaseDN of Kevin Smith will be set to CN=Telus,CN=All Global Address Lists,CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Terrace,DC=com


Test them--Pretty

=======

Modifying the msExchQueryBaseDN attribute for all related users is a tedious job. Can we copy the user template? How?

Open Active Directory Schema console

Locate msExchQueryBaseDN attribute

Double-click msExchQueryBaseDN

Select "Attribute is copied when duplicating a user". Then, it will be really good.