啟用或停用階層式通訊錄Enable or disable hierarchical address books

您可以設定階層式通訊錄 (HAB) 這是可在 Microsoft Outlook 2010 或更新版本的使用者功能。使用 HAB,其 Exchange 組織中的收件者可以尋找使用者使用取決於資或管理結構組織階層。若要深入了解 HABs,請參閱階層式通訊錄You can configure a hierarchical address book (HAB), which is a feature available to end users in Microsoft Outlook 2010 or later. With an HAB, users can look for recipients in their Exchange organization by using an organizational hierarchy based on seniority or management structure. To learn more about HABs, see Hierarchical address books.

開始之前有哪些須知?What do you need to know before you begin?

  • 預估完成時間:1 小時。Estimated time to complete: 1 hour.

  • 您必須獲得權限才能執行此程序或程序。若您需要哪些權限,請參閱Recipients permissions主題中的 「 通訊群組 」 項目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Distribution groups" entry in the Recipients permissions topic.

  • 您無法使用 Exchange 系統管理中心 (EAC) 執行此程序。您必須使用命令介面。You can't use the Exchange Administration Center (EAC) to perform this procedure. You must use the Shell.

  • 您開始之前,請閱讀 <階層式通訊錄。您應該了解 HAB 是否適合您的 Exchange 組織。Before you get started, read the topic Hierarchical address books. You should understand if a HAB is appropriate for your Exchange organization.

  • 了解如何組織單位 (Ou)、 群組、 使用者及 Exchange 組織中目前設定的連絡人。Understand how organizational units (OUs), groups, users, and contacts are currently configured in your Exchange organization.

  • 瞭解下表中的指令程式和相關聯的參數,設定 HAB 時需要這些項目。Understand the cmdlets and associated parameters in the following table, which are required to configure a HAB.

指令程式Cmdlet 參數Parameter
Set-organizationconfigSet-OrganizationConfig
HierarchicalAddressBookRootHierarchicalAddressBookRoot
Set-GroupSet-Group
IsHierarchicalGroupIsHierarchicalGroup
SeniorityIndexSeniorityIndex
PhoneticDisplayNamePhoneticDisplayName
Set-UserSet-User
SeniorityIndexSeniorityIndex
PhoneticDisplayNamePhoneticDisplayName
Set-ContactSet-Contact
SeniorityIndexSeniorityIndex
PhoneticDisplayNamePhoneticDisplayName
  • 如需適用於此主題中程序的快速鍵相關資訊,請參閱 Exchange 系統管理中心的鍵盤快速鍵For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

有問題嗎?尋求 Exchange 論壇中的協助。請造訪在Exchange ServerExchange OnlineExchange Online Protection論壇。Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection.

您要執行的工作What do you want to do?

使用命令介面啟用 HABUse the Shell to enable a HAB

注意

雖然您無法使用 EAC 啟用 HAB,但在啟用您之後可以使用 EAC 管理組織階層中的群組的成員資格。Although you can't use the EAC to enable a HAB, after it's enabled you can use the EAC to manage the membership of the groups in the organizational hierarchy.

此範例中,呼叫 HAB OU 都會有 hab組織的網域名稱為 Contoso-dom 與 Contoso,Ltd 將會是最上層的組織階層 (根組織) 中的名稱。次級群組命名 Corporate Office、 Product Support Organization 和 Sales&行銷組織將建立為子組織 Contoso,ltd。 此外,群組下 Human Resources、 Accounting Group 和管理會為子組織 Corporate Office 底下建立群組。For this example, an OU called HAB will be created for the HAB. The name of the domain for the organization is Contoso-dom, and Contoso,Ltd will be the name of the top-level organization in the hierarchy (the root organization). Subordinate groups named Corporate Office, Product Support Organization, and Sales & Marketing Organization will be created as child organizations under Contoso,Ltd. Additionally, the groups Human Resources, Accounting Group, and Administration Group will be created as child organizations under Corporate Office.

如需建立通訊群組的詳細資訊,請參閱建立和管理通訊群組For detailed information about creating distribution groups, see Create and manage distribution groups.

  1. 建立名為 Contoso 組織中的 HAB OU。您可以使用 Active Directory 使用者及電腦或在命令提示字元處輸入下列命令。Create an OU named HAB in the Contoso organization. You can use Active Directory Users and Computers or type the following at a command prompt.

    注意

    或者,您可以使用現有的 OU Exchange 樹系中。Alternatively, you can use an existing OU in your Exchange forest.

    dsadd ou "OU=HAB,DC=Contoso-dom,DC=Contoso,DC=com"
    

    注意

    如需詳細資訊,請參閱建立新的組織單位For details, see Create a New Organizational Unit.

  2. 對 HAB 建立根通訊群組 Contoso,Ltd。Create the root distribution group Contoso,Ltd for the HAB.

    注意

    本主題的目的,會提供命令介面範例。不過,您也可以使用 EAC 建立通訊群組。如需詳細資訊,請參閱建立和管理通訊群組For the purposes of this topic, the Shell example is provided. However, you can also use the EAC to create a distribution group. For details, see Create and manage distribution groups.

    New-DistributionGroup -Name "Contoso,Ltd" -DisplayName "Contoso,Ltd" -Alias "ContosoRoot" -OrganizationalUnit "Contoso-dom.Contoso.com/HAB" -SamAccountName "ContosoRoot" -Type "Distribution"
    
  3. 將 Contoso,Ltd 指定為 HAB 的根組織。Designate Contoso,Ltd as the root organization for the HAB.

    Set-OrganizationConfig -HierarchicalAddressBookRoot "Contoso,Ltd"
    
  4. 在 HAB 建立其他各層的通訊群組此範例中,您可以建立下列群組: Corporate Office、 Product Support Organization 銷售&行銷組織、 Human Resources、 Accounting Group 和 Administration Group。此範例會建立通訊群組的公司辦公室。Create distribution groups for the other tiers in the HAB. For this example, you would create the following groups: Corporate Office, Product Support Organization, Sales & Marketing Organization, Human Resources, Accounting Group, and Administration Group. This example creates the distribution group Corporate Office.

    注意

    本主題的目的,會提供命令介面範例。不過,您也可以使用 EAC 建立通訊群組。如需詳細資訊,請參閱建立和管理通訊群組For the purposes of this topic, the Shell example is provided. However, you can also use the EAC to create distribution groups. For details, see Create and manage distribution groups.

    New-DistributionGroup -Name "Corporate Office" -DisplayName "Corporate Office" -Alias "CorporateOffice" -OrganizationalUnit "Contoso-dom.Contoso.com/HAB" -SamAccountName "CorporateOffice" -Type "Distribution"
    
  5. 每個群組指定為 HAB 的成員此範例中,您會指定下列群組為正在階層式群組: Contoso,Ltd、 Corporate Office、 Product Support Organization、 銷售&行銷組織、 Human Resources、 Accounting Group 和 Administration Group。此範例會將指定通訊群組 Contoso,Ltd 的 HAB 成員Designate each of the groups as members of the HAB. For this example, you would designate the following groups as being hierarchical groups: Contoso,Ltd, Corporate Office, Product Support Organization, Sales & Marketing Organization, Human Resources, Accounting Group, and Administration Group. This example designates the distribution group Contoso,Ltd as a member of the HAB.

    Set-Group -Identity "Contoso,Ltd" -IsHierarchicalGroup $true
    
  6. 將每個屬於群組新增為根組織中的成員。此範例中,通訊群組 Corporate Office、 Product Support Organization 和 Sales&行銷組織新增為成員的根組織 Contoso,Ltd 的 HAB本範例會新增 Corporate Office 通訊群組 Contoso,Ltd 根通訊群組的成員。Add each of the subordinate groups as members of the root organization. For this example, distribution groups Corporate Office, Product Support Organization, and Sales & Marketing Organization, are added as members of the root organization Contoso,Ltd in the HAB. This example adds the Corporate Office distribution group as a member of the Contoso,Ltd root distribution group.

    注意

    這個範例會使用通訊群組的別名。This example uses the alias of the distribution groups.

    Add-DistributionGroupMember -Identity "ContosoRoot" -Member "CorporateOffice"
    
  7. 將從屬於通訊群組 Corporate Office 的每一個群組新增為群組的成員。對於這個範例,通訊群組 Human Resources、Accounting Group 和 Administration Group 會新增為通訊群組 Corporate Office 的成員。這個範例會將 Human Resources 通訊群組新增為 Corporate Office 通訊群組的成員。Add each of the groups that are subordinate to the distribution group Corporate Office as members of the group. For this example, distribution groups Human Resources, Accounting Group, and Administration Group, are added as members of the distribution group Corporate Office. This example adds the Human Resources distribution group as a member of the Corporate Office distribution group.

    注意

    這個範例會使用通訊群組的別名,並假設 Human Resources 通訊群組的別名為 HumanResources。This example uses the alias of the distribution groups and assumes the Human Resources distribution group alias is HumanResources.

    Add-DistributionGroupMember -Identity "CorporateOffice" -Member "HumanResources"
    
  8. 將使用者加入 HAB 中的群組。對於這個範例,David Hamilton (SMTP 位址為 DHamilton@contoso.com) 是 OU Contoso-dom.Contoso.com/Users 中現有的使用者,並且會新增到群組 Corporate Office。重複這個步驟,以將其他使用者新增至 HAB 中的群組。Add users to the groups in the HAB. For this example, David Hamilton (SMTP address DHamilton@contoso.com) is an existing user in the OU Contoso-dom.Contoso.com/Users and will be added to the group Corporate Office. Repeat this step to add other users to groups in the HAB.

    Add-DistributionGroupMember -Identity "CorporateOffice" -Member "DHamilton"
    
  9. 將_SeniorityIndex_參數設為 HAB 的群組此範例中,Corporate Office 群組包含三個子群組: Human Resources、 Accounting Group 和 Administration Group。而不是擁有遞增字母順序排列,這是預設值,所列的群組慣用的排序方式將人力資源 ( SeniorityIndex = 100)、 Accounting Group ( SeniorityIndex = 50),然後管理群組 ( SeniorityIndex = 25)。本範例會將_SeniorityIndex_參數設定為 100 人力資源群組。Set the SeniorityIndex parameter for groups in the HAB. For this example, the Corporate Office group contains three child groups: Human Resources, Accounting Group, and Administration Group. Instead of having the groups listed in ascending alphabetical order, which is the default, the preferred sorting will be Human Resources ( SeniorityIndex = 100), Accounting Group ( SeniorityIndex = 50), and then Administration Group ( SeniorityIndex = 25). This example sets the SeniorityIndex parameter for the Human Resources group to 100.

    Set-Group -Identity "Human Resources" -SeniorityIndex 100
    

    注意

    SeniorityIndex_參數是用來排序的群組或使用者的遞增或遞減 HAB 的數字順序的數字值如果_SeniorityIndex_參數未設定或相同的兩個或多個使用者、 排序順序 HAB 會使用_PhoneticDisplayName_參數值清單中以遞增字母順序排列的使用者。如果未設定_PhoneticDisplayName_值,則排序順序 HAB _DisplayName_參數值預設是及列出遞增字母順序排列的使用者。The _SeniorityIndex parameter is a numerical value used to sort groups or users in descending numerical order in a HAB. If the SeniorityIndex parameter isn't set or is equal for two or more users, the HAB sorting order uses the PhoneticDisplayName parameter value to list the users in ascending alphabetical order. If the PhoneticDisplayName value isn't set, the HAB sorting order defaults to the DisplayName parameter value and lists the users in ascending alphabetical order.

  10. 將_SeniorityIndex_參數設定為 HAB 群組中的使用者。此範例中,Corporate Office 群組包含三個使用者: Amy Alberts、 David Hamilton 及 Rajesh M Patel。而不是擁有遞增字母順序列出預設的使用者、 偏好的排序方式將 David Hamilton ( SeniorityIndex = 100)、 Rajesh M Patel ( SeniorityIndex = 50),然後 Amy Alberts ( SeniorityIndex = 25)。此範例會設定使用者 David Hamilton 為 100 SeniorityIndex_參數。Set the _SeniorityIndex parameter for users in the HAB groups. For this example, the Corporate Office group contains three users: Amy Alberts, David Hamilton, and Rajesh M. Patel. Instead of having the users listed in ascending alphabetical order by default, the preferred sorting will be David Hamilton ( SeniorityIndex = 100), Rajesh M. Patel ( SeniorityIndex = 50), and then Amy Alberts ( SeniorityIndex = 25). This example sets the SeniorityIndex parameter for the user David Hamilton to 100.

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

完成上述步驟之後, HAB 會在 Outlook 中顯示。若要檢視 HAB,開啟 Outlook 並按一下 [通訊錄]。在 [組織] 索引標籤類似下圖顯示 HAB。After completing the preceding steps, the HAB will be visible in Outlook. To view the HAB, open Outlook and click Address Book. The HAB is displayed on the Organization tab, similar to the following figure.

Contoso,Ltd 的範例 HABExample HAB for Contoso,Ltd

階層式通訊錄對話方塊

HAB 建立之後,您可以使用 EAC 管理組織階層中的群組的成員資格。不過,您必須使用命令介面來修改任何新的群組或使用者的_SeniorityIndex_參數。After the HAB is created, you can use the EAC to manage the membership of the groups in the organizational hierarchy. However, you must use the Shell to modify the SeniorityIndex parameter for any new groups or users.

如需詳細的語法及參數資訊,請參閱下列各項:For detailed syntax and parameter information, see the following:

使用命令介面來停用階層式通訊錄Use the Shell to disable a hierarchical address book

這個範例會停用用於 HAB 的根組織。This example disables the root organization used for the HAB.

Set-OrganizationConfig -HierarchicalAddressBookRoot $null

注意

此命令不會刪除的根組織或子群組用於 HAB 結構或重設_SeniorityIndex_值的群組或使用者。它只會防止 HAB 在 Outlook 中顯示。若要啟用使用相同的組態設定 HAB 同樣地,您只需要啟用根組織。This command doesn't delete the root organization or child groups used in the HAB structure or reset the SeniorityIndex values for groups or users. It only prevents the HAB from being displayed in Outlook. To enable the HAB with the same configuration settings again, you only need to enable the root organization again.

如需詳細的語法及參數資訊,請參閱Set-organizationconfigFor detailed syntax and parameter information, see Set-OrganizationConfig.