Forum Discussion
Moving a User to Skype for Business Online
I am trying to move my account to Skype for Business Online, but I am getting the issue below:
From the Skype for business server management shell I run:
$cred=Get-Credential
Move-CsUser sip:firstname.lastname@domain.com -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl https://name.online.lync.com/HostedMigration/hostedmigrationservice.svc
Rather than use the credentials that I am inputting after entering the $cred=Get-Credential command it is using my domain admin credentials (the credentials I am logged onto the server with).
Move-CsUser : Login failed for user 'domain\username'.
At line:1 char:1
+ Move-CsUser sip:firstname.lastname@domain.com -Target sipfed.online.lync.com
-Cre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Move-CsUser], SqlConnectionEx
ception
+ FullyQualifiedErrorId : Microsoft.Rtc.Common.Data.SqlConnectionException
,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet
Hi Craig;
Identity is a required parameter for moving a user, sip is the actual sip address of the user ie
Move-CsUser -Identity "sip:Habib@Domain.com" Target sipfed.online.lync.com -Credential $credential -HostedMigrationOverrideUrl https://adminXY.online.lync.com/HostedMigration/hostedmigrationservice.svc
Here is the documentation on the cmdlet.
https://docs.microsoft.com/en-us/powershell/module/skype/move-csuser?view=skype-ps
Habib
15 Replies
Hi Craig ;
Not sure how you're connecting to your tenant but here is what I use:
1. Launch Powershell and connect to Skype for Business Online
Import-Module SkypeOnlineConnector
$credential = Get-Credential adminaccount@domain.com
$session = New-CsOnlineSession -Credential $credential
Import-PSSession $session -AllowClobber
Get-CsTenant | fl DisplayName
2. Example cmdlet: Move-CsUser -Identity User@domain.com -Target sipfed.online.lync.com -Credential $credential -HostedMigrationOverrideUrl https://adminXY.online.lync.com/HostedMigration/hostedmigrationservice.svc- blue-manIron ContributorWhat is the difference between sip: and -Identity?
Hi Craig;
Identity is a required parameter for moving a user, sip is the actual sip address of the user ie
Move-CsUser -Identity "sip:Habib@Domain.com" Target sipfed.online.lync.com -Credential $credential -HostedMigrationOverrideUrl https://adminXY.online.lync.com/HostedMigration/hostedmigrationservice.svc
Here is the documentation on the cmdlet.
https://docs.microsoft.com/en-us/powershell/module/skype/move-csuser?view=skype-ps
Habib