Rollback users from Teams to Lync Server
This scenario apply only for individual or bulk moved users to Teams from Lync/SfB environment using Move-CsUser commands.
It's not a common scenario where users move back to Lync from Teams but in a situation you might need it.
Part of the process you may required to find hostedmigrationService related to your tenant.
$url="https://admin1a.online.lync.com/HostedMigration/hostedmigrationService.svc"
you need to check above highlighted parameter which is related to your account. If you're using Get-TenantInfo.PS1 also one way of find the script and try
Once you done with $url defined you can go for next step to move user back to onprem
$cr=Get-Credential
Move-CsUser -Identity "madushka@deployskypeforbusiness.com" -Target "lyncpool.deployskypeforbusiness.com" -Credential $cr -Verbose
Prompt for $cr=credential make sure enter Teams administrator
Once you move the user successfully can verify using following parameter
HostingProvider should change it to SRV:
Bulk users
Save these users in CSV with a header sipaddress (this can be text with csv)
$Userlist = import-csv .\Userslist.csv
ForEach ($AllMoveuser in $Userlist)
{
Move-CsUser -Identity $AllMoveUser.SipAddress -Target "sipfed.online.lync.com" -ProxyPool "lyncpool.deployskypeforbusiness.com" -Credential $cr -HostedMigrationOverrideUrl $url -Verbose
}
Enjoy!