Forum Discussion
ProgentCT
Jun 16, 2021Brass Contributor
How does one move a user to Teams now that SFB Powershell is blocked?
Now that "Skype for Business Online PowerShell connections are blocked" how does one move a user to Teams from on-prem? The Teams PS module reports "Move-CsUser : The term 'Move-CsUser' is not re...
Jun 16, 2021
On premises you use the Skype server powershell module
- ProgentCTJun 16, 2021Brass ContributorThe Skype Powershell Module is blocked and deprecated. Per: https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-move-from-sfbo
PS C:\Windows\system32> $sfboSession = New-CsOnlineSession -Username me@mydomain.onmicrosoft.com
New-PSSession : [admin0a.online.lync.com] Processing data from remote server admin0a.online.lync.com failed with the
following error message: Skype for Business Online PowerShell connections are blocked. Please replace the Skype for
Business Online PowerShell connector module with the Teams PowerShell Module. Please visit https://aka.ms/sfbocon2tpm
for supported options. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\Common Files\Skype for Business
Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:254 char:16
+ ... $session = New-PSSession -Name $psSessionName -ConnectionUri $Connec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed
PS C:\Windows\system32>
The documentation appears to be written for non-MFA global admins.
https://docs.microsoft.com/en-us/skypeforbusiness/hybrid/move-users-between-on-premises-and-cloud#prerequisites
The link above yields the following result. My credentials are correct. However, there is no MFA prompt.
Move-CsUser : Failed to logon with given credentials. Make sure correct user name and password provided.
At line:1 char:1
+ Move-CsUser -Identity USER -Target sipfed.online.l ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (USER:OCSADUser) [Move-CsUser], CommonAut
hException
+ FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet- Jun 16, 2021Are you using the s4b online module or the one installed on the Skype server?