Wednesday, June 8, 2016

Move users to and from Lync Online


Move users to Skype for Business Online

Move-CsUser -Identity username@contoso.com -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl <URL>

(https://technet.microsoft.com/en-us/library/jj204969.aspx)



Move users back to on-premises

Move-CsUser -Identity username@contoso.com -Target localpool.contoso.com -Credential $cred -HostedMigrationOverrideUrl <URL> -DomainController <DC>

(https://technet.microsoft.com/en-us/library/jj204967.aspx)

I found that if the "-DomainController" switch is not used then the move fails with the error - Move-CsUser : Cannot find user in Active Directory with the following SIP URI:<>










4 comments:

  1. Hi-

    Have you found that you get this error under other circumstances? Even when you add -DomainController?

    J.

    ReplyDelete
  2. Hi J. Can you provide the command as well as the error you are seeing?

    ReplyDelete
  3. I am having the same problem. Here is my command:
    Move-CsUser -Identity user@xxx.com -Target sipfed.online.lync.com -Credential $creds -HostedMigrationOverrideUrl https://admin0a.online.lync.com/HostedMigration/hostedmigrationservice.svc -DomainController SERVER.xyz.local

    Here is the error:
    Move-CsUser : HostedMigration fault: Error=(201), Description=(Cannot finduser in Active Directory with the following SIP URI:
    "sip:user@xxx.com")

    I verified the sip is valid and is returned upon search.

    ReplyDelete
    Replies
    1. Hey Brian, do you have a multi-domain forest structure in your AD? If so, try to point to the DC that contains the user. I'm not sure if you can point to a GC for this cmdlet.

      Delete