迁移通讯簿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-GroupingId Active Directory 属性。您可能希望对通讯簿条目分组以限制通讯簿的搜索范围。要使用 msRTCSIP-GroupingId 属性,请编写用于填充该属性的脚本,向您希望组合在一起的所有用户分配相同的值。例如,向一个 OU 中的所有用户分配一个值。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. 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. 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.

备注

如果您的组织使用远程呼叫控制并且您自定义了通讯簿规范化规则,则必须首先执行本主题中的过程,然后才能使用远程呼叫控制。要执行该过程,需要具有 RTCUniversalServerAdmins 组成员的身份或同等权限。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. 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 Web 组件文件目录中。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.txtThe 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复制和重命名为   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