다음을 통해 공유


Roll back migrated users in Lync Server 2013

 

Topic Last Modified: 2012-10-07

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. To roll back, disable the policy for the user, and then run the Invoke-CsUcsRollback cmdlet. 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. 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.

Important

The Move-CsUser cmdlet automatically rolls back the user's contact store from Exchange 2013 to Lync Server 2013 in the following situations:

  • When users are moved from Lync Server 2013 to Lync Server 2010.

  • 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.

Important

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:

  • 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.

  • 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.

Important

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. 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. 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. 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.

To roll back user contacts from Lync Server 2013 to Lync Server 2010

  1. 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. Before moving a user from Lync Server 2013 to Lync Server 2010, roll back the Buddy List for the specified users on Lync Server.

    Important

    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"
    

    Important

    We do not recommend using the –Force option to force the rollback. If you use this option, the users' contacts will be lost.

To roll back unified contact store contacts from Exchange 2013 to Lync Server 2013

  1. 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"
    

    Important

    You must first roll back the Lync Server user, and then move the Exchange 2013 mailbox. The Exchange administrator is blocked from rolling back Exchange until the Lync Server rollback is complete. We do not recommend using the –Force option to force the rollback. If you use this option, the users' contacts will be lost.

  4. After you roll back the user to Lync Server, the Exchange administrator can roll back the Exchange user from Exchange 2013 to Exchange 2010.