26/03/2014

How to move users from LyncOnline to Lync OnPremise?

Well, I have used this script to move users from LyncOnline to LyncOnPremise for a customer.

First we had to set some attributes for the user in Active Directory:

Get-ADUser -identity "<id of the user>" -Properties MSRTCSIP-PrimaryUserAddress | % {
    $_."MSRTCSIP-PrimaryUserAddress"
    Set-AdUser "<id of the user>" -Add @{'MSRTCSIP-PrimaryUserAddress'="sip:user@domain.com"}
}

Then we moved the user from the Lync Online to the Lync OnPremise:

Move-CsUser -Identity "<id of the user>" -Target <lyncpool.com> -Credential $creds -HostedMigrationOverrideUrl https://admin0e.online.lync.com/HostedMigration/hostedmigrationservice.svc

Then we checked that the user has been moved to the OnPremise Pool:

Get-Csuser | FT RegistrarPool, Identity, SipAddress -AutoSize

Then we had to enable the user for Lync OnPremise:

Enable-CsUser -Identity "<name of the user>" -RegistrarPool "<poolname.domain.com" -SipAddress "sip:<sipaddress@domain.com"

Skype4B-2019 KEMP Loadmaster

Yesterday i finaly got my lab running again. This time with 3 frontend server Skype server 2019 Evaluation in a Enterprise Pool, with SQL 20...