移轉通訊錄Migrate Address Book

 

主題上次修改日期: 2012-10-09Topic Last Modified: 2012-10-09

一般說來,Lync Server 2010 通訊錄會隨拓撲一起遷移。In general, the Lync Server 2010 Address Book is migrated along with the rest of your topology. 不過,如果您在 Lync Server 2010 環境中自訂下列的後續遷移步驟,您可能需要執行一些後續遷移步驟:However, you might need to perform some post-migration steps if you customized the following in your Lync Server 2010 environment:

  • PartitionbyOU WMI 屬性設定成依組織單位 (OU) 群組通訊錄專案。Set the PartitionbyOU WMI property to group Address Book entries by organizational unit (OU).

  • 自訂通訊錄正常化規則。Customized the Address Book normalization rules.

  • UseNormalizationRules 參數的預設值變更為 False。Changed the default value for the UseNormalizationRules parameter to False.

群組通訊錄專案Grouped Address Book Entries

如果您將 PartitionbyOU WMI 屬性設定為 True,為每個 OU 建立通訊錄,如果您想要繼續群組通訊錄專案,則必須設定使用者和連絡人上的 MsRTCSIP partitionbyou Active Directory 屬性。If you set the PartitionbyOU WMI property to True to create address books for each OU, you need to set the msRTCSIP-GroupingId Active Directory attribute on users and contacts if you want to continue grouping address book entries. 您可能想要群組通訊錄專案,以限制通訊錄搜尋的範圍。You might want to group address book entries to limit the scope of Address Book searches. 若要使用 MsRTCSIP partitionbyou 屬性,請撰寫腳本,以填入屬性,並為您要一起群組的所有使用者指派相同的值。To use the msRTCSIP-GroupingId attribute, write a script to populate the attribute, assigning the same value for all of the users that you want to group together. 例如,為 OU 中的所有使用者指派單一值。For example, assign a single value for all the users in an OU.

通訊錄正常化規則Address Book Normalization Rules

如果您已在 Lync Server 2010 環境中自訂通訊錄正規化規則,您必須將自訂規則遷移至試驗集區。If you customized Address Book normalization rules in your Lync Server 2010 environment, you must migrate the customized rules to your pilot pool. 如果您未自訂通訊錄正規化規則,則表示您沒有任何可遷移的通訊錄服務。If you did not customize Address Book normalization rules, you have nothing to migrate for Address Book service. Lync Server 2013 的預設正規化規則與 Lync Server 2010 的預設規則相同。The default normalization rules for Lync Server 2013 are the same as the default rules for Lync Server 2010. 依照本節稍後的程式,遷移自訂的正規化規則。Follow the procedure later in this section to migrate customized normalization rules.

注意

如果您的組織使用遠端呼叫控制,且您自訂了通訊錄正規化規則,您必須先執行本主題中的程式,才能使用遠端呼叫控制。If your organization uses remote call control and you customized Address Book normalization rules, you must perform the procedure in this topic before you can use remote call control. 此程式需要 RTCUniversalServerAdmins 群組或同等權利的成員資格。The procedure requires membership in the RTCUniversalServerAdmins group or equivalent rights.

UseNormalizationRules 設定為 FalseUseNormalizationRules Set to False

如果您將 UseNormalizationRules 的值設為 False,讓使用者可以使用在 Active Directory 網域服務中定義的電話號碼,而不需要 Lync Server 2013 套用正規化規則,您必須將 UseNormalizationRulesIgnoreGenericRules 參數設定為 True。If you set the value for UseNormalizationRules to False so that users can use phone numbers as they are defined in Active Directory Domain Services without having Lync Server 2013 apply normalization rules, you need to set the UseNormalizationRules and IgnoreGenericRules parameters to True. 請依照本節稍後的程式將這些參數設定為 True。Follow the procedure later in this section to set these parameters to True.

遷移通訊錄自訂正常化規則To migrate Address Book customized normalization rules

  1. _ _ _ _ 在 [通訊錄] 共用資料夾的根目錄中尋找公司電話號碼正規化Rules.txt 檔案,並將它複製到 Lync Server 2013 試驗集區中的 [通訊錄共用資料夾] 根。Find the Company_Phone_Number_Normalization_Rules.txt file in the root of the Address Book shared folder, and copy it to the root of the Address Book shared folder in your Lync Server 2013 pilot pool.

    注意

    您的 ABS 網頁元件檔案目錄中已安裝範例通訊錄正常化規則。The sample Address Book normalization rules have been installed in your ABS Web component file directory. 路徑為 $installedDriveLetter: \Program Files\Microsoft Lync Server 2013 \ Web Components\Address Book Files\Files\ Sample_Company_Phone_Number_Normalization_Rules.txt,The path is $installedDriveLetter:\Program Files\Microsoft Lync Server 2013\Web Components\Address Book Files\Files\ Sample_Company_Phone_Number_Normalization_Rules.txt,. 您可以將此檔案複製並重新命名為   Company_Phone_Number_Normalization_Rules.txt   通訊錄共用資料夾的根目錄。This file can be copied and renamed as  Company_Phone_Number_Normalization_Rules.txt  to the address book shared folder’s root directory. 例如, $serverX中共用的通訊錄,   該路徑會類似如下: \ $serverX \LyncFileShare\2-WebServices-1\ABFilesFor example, the address book shared in $serverX, the path will be similar to: \$serverX \LyncFileShare\2-WebServices-1\ABFiles.

  2. 使用文字編輯器(例如 [記事本])開啟公司 _ 電話號碼正規化 _ _Rules.txt 檔 _ 。Use a text editor, such as Notepad, to open the Company_Phone_Number_Normalization_Rules.txt file.

  3. 在 Lync Server 2013 中某些類型的專案將無法正確運作。Certain types of entries will not work correctly in Lync Server 2013. 查看此步驟中所述之專案類型的檔案,視需要進行編輯,然後將變更儲存至試驗集區中的通訊錄共用資料夾。Look through the file for the types of entries described in this step, edit them as necessary, and save the changes to the Address Book shared folder in your pilot pool.

    包含必要空格或標點符號的字串會導致正規化規則失敗,因為這些字元會從輸入到正規化規則的字串中去掉。Strings that include required whitespace or punctuation cause normalization rules to fail because these characters are stripped out of the string that is input to the normalization rules. 如果您有包含必要空格或標點符號的字串,您必須修改字串。If you have strings that include required whitespace or punctuation, you need to modify the strings. 例如,下列字串會導致正規化規則失敗:For example, the following string would cause the normalization rule to fail:

    \s*\(\s*\d\d\d\s*\)\s*\-\s*\d\d\d\s*\-\s*\d\d\d\d
    

    下列字串將不會導致正規化規則失敗:The following string would not cause the normalization rule to fail:

    \s*\(?\s*\d\d\d\s*\)?\s*\-?\s*\d\d\d\s*\-?\s*\d\d\d\d
    

若要將 UseNormalizationRules 和 IgnoreGenericRules 設定為 trueTo set UseNormalizationRules and IgnoreGenericRules to true

  1. 啟動 Lync Server 管理命令介面:依序按一下 [ 開始]、[ 所有程式]、[ Microsoft Lync server 2013],然後按一下 [ Lync server 管理命令介面]。Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.

  2. 執行下列其中一項:Do one of the following:

    • 如果您的部署只包含 Lync Server 2013,請在全域層級執行下列 Cmdlet,將 UseNormalizationRulesIgnoreGenericRules 的值變更為 True:If your deployment includes only Lync Server 2013, run the following cmdlet at the global level to change the values for UseNormalizationRules and IgnoreGenericRules to True:

      Set-CsAddressBookConfiguration -identity <XdsIdentity> -UseNormalizationRules=$true -IgnoreGenericRules=$true
      
    • 如果您的部署包含 Lync Server 2013 和 Lync Server 2010 或 Office 通訊伺服器 2007 R2 的組合,請執行下列 Cmdlet,並將其指派給拓撲中的每個 Lync Server 2013 集區:If your deployment includes a combination of Lync Server 2013 and Lync Server 2010 or Office Communications Server 2007 R2, run the following cmdlet and assign it to each Lync Server 2013 pool in the topology:

      New-CsAddressBookConfiguration -identity <XdsIdentity> -UseNormalizationRules=$true -IgnoreGenericRules=$true
      
  3. 等候中央管理存放區的複寫在所有集區上進行。Wait for Central Management store replication to occur on all pools.

  4. 針對您的部署,修改電話正規化規則檔案「公司 _ 電話 _ 號碼正規化Rules.txt」 _ _ ,以清除內容。Modify the phone normalization rules file, "Company_Phone_Number_Normalization_Rules.txt", for your deployment to clear the content. 檔位於每個 Lync Server 2013 集區的檔案共用上。The file is on the file share of each Lync Server 2013 pool. 如果檔案不存在,請建立名為 "Company _ Phone _ Number 正規化 _ _Rules.txt" 的空檔案。If the file is not present, then create an empty file named "Company_Phone_Number_Normalization_Rules.txt".

  5. 請等候幾分鐘,讓所有前端集區讀取新的檔案。Wait several minutes for all Front End pools to read the new files.

  6. 在您部署中的每個 Lync Server 2013 集區上執行下列 Cmdlet:Run the following cmdlet on each Lync Server 2013 pool in your deployment:

    Update-CsAddressBook