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)
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:<>
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)