Forum Discussion
msabat
Jul 16, 2020Brass Contributor
Issue in script
Hello. I've created some script to move users from SfB On Prem to Teams Only mode. In script I create connection to SfB Online and O365. But after 1 hour script fails - something related to t...
msabat
Jul 20, 2020Brass Contributor
I use that:
Move-CsUser -Identity $user -Target sipfed.online.lync.com -HostedMigrationOverrideUrl https://admin0a.online.lync.com/HostedMigration/hostedmigrationservice.svc -ProxyPool sx-lyncpool.qg.com -MoveToTeams -BypassAudioConferencingCheck -BypassEnterpriseVoiceCheck -credential $credential -Verbose -Confirm:$false
RuudGijsbers
Jul 20, 2020Iron Contributor
msabat That looks fine to me. And in my experience, there's no issue with token lifetimes when using that command.
The error message is regarding the command Get-CsOnlineUser. Perhaps you can work around that command so you won't need it. What are you using that command for?