在 Lync Server 2013 中回滚已迁移的用户Roll back migrated users in Lync Server 2013

 

上次修改的主题: 2012-10-07Topic Last Modified: 2012-10-07

如果需要回滚统一联系人存储功能,请仅在将用户移回 Exchange 2010 或 Lync Server 2010 时才回滚联系人。If you need to roll back the unified contact store feature, roll back the contacts only if you move the user back to Exchange 2010 or Lync Server 2010. 要进行回滚,请针对用户禁用该策略,然后运行 Invoke-CsUcsRollback cmdlet。To roll back, disable the policy for the user, and then run the Invoke-CsUcsRollback cmdlet. 只是单独运行 Invoke-CsUcsRollback 并不足以确保永久回滚,因为如果未禁用该策略,统一联系人存储迁移将再次发生。Just running Invoke-CsUcsRollback alone is not enough to ensure permanent rollback, because unified contact store migration will be initiated again if the policy is not disabled. 例如,如果由于 Exchange 2013 回滚到 Exchange 2010 而回滚用户,然后将用户邮箱移动到 Exchange 2013,则在回滚之后的七天内将再次启动统一联系人存储迁移,只要用户服务策略中仍为用户启用统一联系人存储库,就会再次启动统一联系人存储迁移。For example, if a user is rolled back because Exchange 2013 is rolled back to Exchange 2010, and then the user’s mailbox is moved to Exchange 2013, the unified contact store migration will be initiated again seven days after the rollback, as long as unified contact store is still enabled for the user in the user services policy.

重要

在下列情况下,Get-csuser cmdlet 会自动 用户的联系人存储从 Exchange 2013 回滚到 Lync Server 2013:The Move-CsUser cmdlet automatically rolls back the user's contact store from Exchange 2013 to Lync Server 2013 in the following situations:

  • 将用户从 Lync Server 2013 移动到 Lync Server 2010 时。When users are moved from Lync Server 2013 to Lync Server 2010.

  • 当用户迁移到跨界时,例如,在本地将用户从 Lync Online 移到 Lync Server 2013 时,或者相反。When users are migrated cross premises, such as when a user is moved from Lync Online to Lync Server 2013 on-premises, or vice versa.

重要

如果统一联系人存储模式在导出和导入之间发生更改,则从备份数据库中导入统一联系人存储数据,可能导致统一联系人存储数据和用户数据发生损坏。例如:Importing unified contact store data from a backup database can cause unified contact store data and user data to become corrupted if the unified contact store mode changed between the export and the import. For example:

  • 如果在将用户的联系人迁移到 Exchange 2013 之前导出联系人列表,然后在迁移后导入相同的数据,则统一联系人存储数据和联系人列表将损坏。If you export contact lists before the users' contacts are migrated to Exchange 2013 and then, after the migration, import the same data, the unified contact store data and contact lists will be corrupted.

  • 如果你在将用户迁移到 Exchange 2013 之后导出 userdata,请回滚迁移,然后,由于某些原因,在迁移后导入数据,统一联系人存储数据和联系人列表将损坏。If you export userdata after you migrate users to Exchange 2013, roll back the migration, and then for some reason you import the data from after the migration, the unified contact store data and contact lists will be corrupted.

重要

在将 Exchange 邮箱从 Exchange 2013 移动到 Exchange 2010 之前,Exchange 管理员必须确保 Lync server 管理员首先将 Lync Server 用户联系人从 Exchange 2013 回滚到 Lync Server。Before you move an Exchange mailbox from Exchange 2013 to Exchange 2010, the Exchange administrator must make sure that the Lync Server administrator has first rolled back the Lync Server user contacts from Exchange 2013 to Lync Server. 若要将统一联系人存储联系人回滚到 Lync Server,请参阅本节后面的过程 "将统一联系人存储联系人从 Exchange 2013 回滚到 Lync Server 2013"。To roll back unified contact store contacts to Lync Server, see procedure "To roll back unified contact store contacts from Exchange 2013 to Lync Server 2013," later in this section.

以下过程介绍如何回滚用户联系人。The following procedure describes how to roll back user contacts. 如果使用 get-csuser Cmdlet 在 lync server 2013 和 lync server 2010 之间移动用户,则可以跳过这些步骤,因为 get-csuser cmdlet 会在将用户从 Lync Server 2013 移动到 lync server 2010 时自动回退 unifed 联系人存储库。If you use the Move-CsUser cmdlet to move users between Lync Server 2013 and Lync Server 2010, you can skip these steps because the Move-CsUser cmdlet automatically rolls back unifed contact store when it moves users from Lync Server 2013 to Lync Server 2010. Get-csuser 不会禁用统一联系人存储策略,因此如果用户移回到 Lync Server 2013 中,则迁移到统一联系人存储将会重现。Move-CsUser does not disable unified contact store policy, so the migration to unified contact store will recur if the user is moved back to Lync Server 2013.

将 Lync Server 2013 中的用户联系人回退到 Lync Server 2010To roll back user contacts from Lync Server 2013 to Lync Server 2010

  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. 为要回滚的用户禁用统一联系人存储,使其不会在回滚后重新迁移。(只有您想要确保用户将来不会迁移时,才执行此步骤。)要为单个用户禁用统一联系人存储,请在命令行中键入:Disable unified contact store for the users to be rolled back so that they will not be remigrated after rollback. (Perform this step only if you want to make sure that users will not remigrate in the future.) To disable unified contact store for individual users, at the command line, type:

    Set-CsUserServicesPolicy -Identity "<policy name>" -UcsAllowed $False
    

    例如:For example:

    Set-CsUserServicesPolicy -Identity "UCS Enabled Users" -UcsAllowed $False
    
  3. 在将用户从 Lync Server 2013 移动到 Lync Server 2010 之前,请为 Lync Server 上的指定用户回滚好友列表。Before moving a user from Lync Server 2013 to Lync Server 2010, roll back the Buddy List for the specified users on Lync Server.

    重要

    如果省略此步骤,则将丢失“好友列表”。If this step is omitted, the Buddy List will be lost.

  4. 回滚指定用户。在命令行中键入:Roll back the specified users. At the command line, type:

    Invoke-CsUcsRollback -Identity "<user display name>"
    

    例如:For example:

    Invoke-CsUcsRollback -Identity "Ken Myer"
    

    重要

    建议不要使用 –Force 选项来强制回滚。如果使用此选项,则将会丢失用户的联系人。We do not recommend using the –Force option to force the rollback. If you use this option, the users' contacts will be lost.

将统一联系人存储联系人从 Exchange 2013 回退到 Lync Server 2013To roll back unified contact store contacts from Exchange 2013 to Lync Server 2013

  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. 为要回滚的用户禁用统一联系人存储,使其不会在回滚后重新迁移。要为单个用户禁用统一联系人存储,请在命令行中键入:Disable unified contact store for the users to be rolled back so that they will not be remigrated after rollback. To disable unified contact store for individual users, at the command line, type:

    Set-CsUserServicesPolicy -Identity "<policy name>" -UcsAllowed $False
    

    例如:For example:

    Set-CsUserServicesPolicy -Identity "UCS Enabled Users" -UcsAllowed $False
    
  3. 回滚指定用户。在命令行中键入:Roll back the specified users. At the command line, type:

    Invoke-CsUcsRollback -Identity "<user display name>"
    

    例如:For example:

    Invoke-CsUcsRollback -Identity "Ken Myer"
    

    重要

    必须先回滚 Lync Server 用户,然后再移动 Exchange 2013 邮箱。You must first roll back the Lync Server user, and then move the Exchange 2013 mailbox. 在 Lync Server 回滚完成之前,阻止 Exchange 管理员回滚 Exchange。The Exchange administrator is blocked from rolling back Exchange until the Lync Server rollback is complete. 建议不要使用 –Force 选项来强制回滚。We do not recommend using the –Force option to force the rollback. 如果使用此选项,则将会丢失用户的联系人。If you use this option, the users' contacts will be lost.

  4. 将用户回滚到 Lync Server 后,Exchange 管理员可以将 exchange 用户从 Exchange 2013 回退到 Exchange 2010。After you roll back the user to Lync Server, the Exchange administrator can roll back the Exchange user from Exchange 2013 to Exchange 2010.