一、为Exchange2010 Sp3启用HAB

      在Exchange2010或Exchange Server 2013上都可以配置分层通讯簿 (HAB) 功能。使用 HAB,用户可以根据组织层次结构在他们的 Exchange 组织中浏览收件人。配置方式如下:


1、在DC上打开Windows Powershell,输入:

Dsadd ou "OU=HAB,DC=Contoso,DC=com"


2、为 HAB 创建根通讯组 Contoso,Ltd。在EMS上输入:

New-DistributionGroup -Name "Contoso,Ltd" -DisplayName "Contoso,Ltd"-Alias "ContosoRoot" -OrganizationalUnit "Contoso.com/HAB"-SamAccountName "ContosoRoot" -Type "Distribution"


3、将 Contoso,Ltd 指定为 HAB 的根组织。

Set-OrganizationConfig -HierarchicalAddressBookRoot "Contoso,Ltd"


4、在 HAB 中创建其他层的通讯组,这里只创建一个Contoso的通讯组,其他的用相同的方式创建即可;

New-DistributionGroup -Name "Contoso" -DisplayName "Contoso"-Alias "Contoso" -OrganizationalUnit "Contoso.com/HAB"-SamAccountName "Contoso" -Type "Distribution"


5、将每个组指定为 HAB 成员

Set-Group -Identity "Contoso,Ltd" -IsHierarchicalGroup $true


6、将每个下属组添加为根组织的成员,这里只以ContosoSH为例创建,其他已相同方式创建即可;

Add-DistributionGroupMember -Identity "ContosoRoot" -Member "CntosoSH"


7、将附属于通讯组 ContosoSH 的每个组添加为该组的成员,

Add-DistributionGroupMember -Identity "ContosoSH" -Member "IT Group"


8、在 HAB 中将用户添加到组

Add-DistributionGroupMember -Identity "ContosoSH" -Member "Bob"


9、为 HAB 中的组设置 SeniorityIndex 参数。例如,ContosoSH 组包含三个子组:IT Group、Accounting Group 和 Administration Group。相较于默认的将组按字母升序排列,首选排序为 IT Group (SeniorityIndex = 100)、Accounting Group (SeniorityIndex = 50),然后是 Administration Group (SeniorityIndex = 25)。该示例将 IT Group 组的 SeniorityIndex 参数设置为 100。

Set-Group -Identity "It Group" -SeniorityIndex 100


10、为 HAB 组中的用户设置 SeniorityIndex 参数。例如,ContosoSH 组包含三位用户:Alice、Bob 和Perter。相较于默认的将用户按照字母升序排列,首选排序为 Alice (SeniorityIndex = 25)、Bob (SeniorityIndex = 50),然后是 Perter(SeniorityIndex = 100)。该示例将用户Perter 的 SeniorityIndex 参数设置为 100。

Set-User -Identity "perter@contoso.com" -SeniorityIndex 100


11、完成上述步骤之后,HAB 将显示在 Outlook 中。若要查看 HAB,请打开 Outlook,然后单击“通讯簿”。HAB 显示在“组织”选项卡上,与下图类似。

112821407.jpg

二、为Exchange2010 SP3禁用HAB

禁用HAB只需要一条命令即可

在EMS上输入:

Set-OrganizationConfig -HierarchicalAddressBookRoot $null


参考资料http://technet.microsoft.com/zh-CN/library/ff607473(v=exchg.150).aspx