SOLVED
Home

Moving a User to Skype for Business Online

%3CLINGO-SUB%20id%3D%22lingo-sub-149820%22%20slang%3D%22en-US%22%3EMoving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149820%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20am%20trying%20to%20move%20my%20account%20to%20Skype%20for%20Business%20Online%2C%20but%20I%20am%20getting%20the%20issue%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFrom%20the%20Skype%20for%20business%20server%20management%20shell%20I%20run%3A%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%24cred%3DGet-Credential%3CBR%20%2F%3EMove-CsUser%20sip%3Afirstname.lastname%40domain.com%20-Target%20sipfed.online.lync.com%20-Credential%20%24cred%20-HostedMigrationOverrideUrl%20%3CA%20href%3D%22https%3A%2F%2Fname.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fname.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERather%20than%20use%20the%20credentials%20that%20I%20am%20inputting%20after%20entering%20the%20%24cred%3DGet-Credential%20command%20it%20is%20using%20my%20domain%20admin%20credentials%20(the%20credentials%20I%20am%20logged%20onto%20the%20server%20with).%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EMove-CsUser%20%3A%20Login%20failed%20for%20user%20'domain%5Cusername'.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Move-CsUser%20sip%3Afirstname.lastname%40domain.com%20-Target%20sipfed.online.lync.com%3CBR%20%2F%3E-Cre%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E~~~%3CBR%20%2F%3E%20%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BMove-CsUser%5D%2C%20SqlConnectionEx%3CBR%20%2F%3E%20ception%3CBR%20%2F%3E%20%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Rtc.Common.Data.SqlConnectionException%3CBR%20%2F%3E%20%2CMicrosoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-149820%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMigrating%20users%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-369519%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-369519%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20don't%20rely%20on%20your%20the%20conversation%20history%20and%20and%20your%20users%20can%20accept%20losing%20their%20contact%20list%20you%20can%20enable%20them%20as%20new%20users.%20Otherwise%20you%20should%20stick%20to%20migrating%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149918%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149918%22%20slang%3D%22en-US%22%3EEnable-CSUser%20is%20setting%20up%20a%20brand%20new%20user%20to%20have%20a%20sip%20address%2C%20policies%20etc%20to%20start%20using%20Skype%20for%20Business.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149917%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149917%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20I%20point%20an%20on%20premise%20users%20to%20Skype%20for%20Business%20Online%20instead%20of%20moving%20them%2C%20what%20is%20the%20difference%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEnable-CsUser%20-Identity%20%3CSPAN%3Efirstname%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Elastname%3C%2FSPAN%3E%40domain.com%20-SipAddress%20%22sip%3Afirstname.lastname%40domain.com%22%20-HostingProviderProxyFqdn%20%22sipfed.online.lync.com%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149914%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149914%22%20slang%3D%22en-US%22%3EAlso%20ensure%20you%20are%20part%20of%20the%20RTCUniversalServerAdmins%2C%20RTCUniversalUserAdmins%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149912%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149912%22%20slang%3D%22en-US%22%3E%3CP%3EAnother%20group%20you%20need%20to%20be%20a%20member%20of%20is%20the%26nbsp%3BRTCUniversalServerAdmins%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fcommunicationsknowledge.blogspot.co.uk%2F2014%2F10%2Fenable-csuser-cannot-open-database-xds.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fcommunicationsknowledge.blogspot.co.uk%2F2014%2F10%2Fenable-csuser-cannot-open-database-xds.html%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149909%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149909%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20domain%20admin%20account%20wasn't%20added%20to%20the%26nbsp%3B%3CSPAN%3ECSAdministrator.%20i%20have%20added%20it%20to%20that%20group%20but%20now%20I%20am%20getting%26nbsp%3B%3C%2FSPAN%3EMove-CsUser%20%3A%20Cannot%20open%20database%20%22xds%22%20requested%20by%20the%20login.%20The%20login%3CBR%20%2F%3Efailed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149887%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149887%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20last%20command%20is%20still%20running%20as%20my%20domain%20admin%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMove-CsUser%20-Identity%20sip%3Afirstname.lastname%40domain.com%20-Target%20sipfed.online.lync.com%20-Credential%20%24credential%20-HostedMigrationOverrideUrl%20%3CA%20href%3D%22https%3A%2F%2Fname.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fname.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMove-CsUser%20%3A%20Login%20failed%20for%20user%20'domain%5Cdomainadminaccount'.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Move-CsUser%20-Identity%20sip%3Afirstname.lastname%40domain.com%20-Target%3CBR%20%2F%3Esipfed.online.lyn%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E~~~%3CBR%20%2F%3E%20%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BMove-CsUser%5D%2C%20SqlConnectionEx%3CBR%20%2F%3E%20ception%3CBR%20%2F%3E%20%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Rtc.Common.Data.SqlConnectionException%3CBR%20%2F%3E%20%2CMicrosoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149884%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149884%22%20slang%3D%22en-US%22%3E%3CP%3Eactually%20found%20the%20issue%20I%20had%20a%20space%20in%20between%26nbsp%3B-%20OverrideAdminDomain%20it%20should%20be%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-OverrideAdminDomain%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149883%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149883%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Craig%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20have%20a%20space%20between%20-%20and%26nbsp%3B%3CSPAN%3EOverrideAdminDomain%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%24session%20%3D%20New-CsOnlineSession%20-Credential%20%24credential%20-%20OverrideAdminDomain%20%E2%80%9Cdomain.onmicrosoft.com%E2%80%9D%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149881%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149881%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20now%20run%20the%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24session%20%3D%20New-CsOnlineSession%20-Credential%20%24credential%20-%20OverrideAdminDomain%20%E2%80%9Cdomain.onmicrosoft.com%E2%80%9D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20get%20the%20following%20error%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENew-CsOnlineSession%20%3A%20A%20positional%20parameter%20cannot%20be%20found%20that%20accepts%3CBR%20%2F%3Eargument%20'-'.%3CBR%20%2F%3EAt%20line%3A1%20char%3A11%3CBR%20%2F%3E%2B%20%24session%20%3DNew-CsOnlineSession%20-Credential%20%24credential%20-%20OverrideAdminDomain%3CBR%20%2F%3E%22dom%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E~~~%3CBR%20%2F%3E%20%2B%20CategoryInfo%20%3A%20InvalidArgument%3A%20(%3A)%20%5BNew-CsOnlineSession%5D%2C%20Para%3CBR%20%2F%3E%20meterBindingException%3CBR%20%2F%3E%20%2B%20FullyQualifiedErrorId%20%3A%20PositionalParameterNotFound%2CNew-CsOnlineSession%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149863%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149863%22%20slang%3D%22en-US%22%3E%3CP%3ELooks%20like%20it%20is%20a%20known%20issue%20for%20hybrid%20deployments%20-%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fwww.ucblog.co.uk%2F%3Fp%3D25%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.ucblog.co.uk%2F%3Fp%3D25%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149860%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149860%22%20slang%3D%22en-US%22%3E%3CP%3EI%20get%20the%20following%20error%20after%20running%20-%20%24session%20%3D%20New-CsOnlineSession%20-Credential%20%24credential%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-CsPowerShellEndpoint%20%3A%20The%20remote%20server%20returned%20an%20error%3A%20(406)%20Not%3CBR%20%2F%3EAcceptable.%3CBR%20%2F%3EAt%20C%3A%5CProgram%20Files%5CCommon%20Files%5CSkype%20for%20Business%3CBR%20%2F%3EOnline%5CModules%5CSkypeOnlineConnector%5CSkypeOnlineConnectorStartup.psm1%3A107%3CBR%20%2F%3Echar%3A26%3CBR%20%2F%3E%2B%20%24targetUri%20%3D%20Get-CsPowerShellEndpoint%20-TargetDomain%20%24adminDomain%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%20%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BGet-CsPowerShellEndpoint%5D%2C%20We%3CBR%20%2F%3E%20bException%3CBR%20%2F%3E%20%2B%20FullyQualifiedErrorId%20%3A%20System.Net.WebException%2CMicrosoft.Rtc.Management%3CBR%20%2F%3E%20.OnlineConnector.GetPowerShellEndpointCmdlet%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149845%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149845%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Craig%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIdentity%20is%20a%20required%20parameter%20for%20moving%20a%20user%2C%20sip%20is%20the%20actual%20sip%20address%20of%20the%20user%20ie%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3EMove-CsUser%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-Identity%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22sip%3AHabib%40Domain.com%22%26nbsp%3B%3C%2FSPAN%3ETarget%20sipfed.online.lync.com%20-Credential%20%24credential%20-HostedMigrationOverrideUrl%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fadmin0a.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2FadminXY.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20the%20documentation%20on%20the%20cmdlet.%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fskype%2Fmove-csuser%3Fview%3Dskype-ps%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fskype%2Fmove-csuser%3Fview%3Dskype-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fskype%2Fmove-csuser%3Fview%3Dskype-ps%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149843%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149843%22%20slang%3D%22en-US%22%3EWhat%20is%20the%20difference%20between%20sip%3A%20and%20-Identity%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-149842%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20a%20User%20to%20Skype%20for%20Business%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-149842%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Craig%20%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENot%20sure%20how%20you're%20connecting%20to%20your%20tenant%20but%20here%20is%20what%20I%20use%3A%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E1.%20Launch%20Powershell%20and%20connect%20to%20Skype%20for%20Business%20Online%3CBR%20%2F%3EImport-Module%20SkypeOnlineConnector%20%3CBR%20%2F%3E%24credential%20%3D%20Get-Credential%20adminaccount%40domain.com%20%3CBR%20%2F%3E%24session%20%3D%20New-CsOnlineSession%20-Credential%20%24credential%20%3CBR%20%2F%3EImport-PSSession%20%24session%20-AllowClobber%3CBR%20%2F%3EGet-CsTenant%20%7C%20fl%20DisplayName%20%3CBR%20%2F%3E2.%20Example%20cmdlet%3A%20Move-CsUser%20-Identity%20User%40domain.com%20-Target%20sipfed.online.lync.com%20-Credential%20%24credential%20-HostedMigrationOverrideUrl%20%3CA%20href%3D%22https%3A%2F%2FadminXY.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2FadminXY.online.lync.com%2FHostedMigration%2Fhostedmigrationservice.svc%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

 

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

15 Replies
Highlighted

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

Highlighted
What is the difference between sip: and -Identity?
Highlighted
Solution

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

Highlighted

I get the following error after running - $session = New-CsOnlineSession -Credential $credential

 

Get-CsPowerShellEndpoint : The remote server returned an error: (406) Not
Acceptable.
At C:\Program Files\Common Files\Skype for Business
Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:107
char:26
+ $targetUri = Get-CsPowerShellEndpoint -TargetDomain $adminDomain
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-CsPowerShellEndpoint], We
bException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Rtc.Management
.OnlineConnector.GetPowerShellEndpointCmdlet

Highlighted

Looks like it is a known issue for hybrid deployments - http://www.ucblog.co.uk/?p=25

Highlighted

When I now run the command:

 

$session = New-CsOnlineSession -Credential $credential - OverrideAdminDomain “domain.onmicrosoft.com”

 

I get the following error:

 

New-CsOnlineSession : A positional parameter cannot be found that accepts
argument '-'.
At line:1 char:11
+ $session =New-CsOnlineSession -Credential $credential - OverrideAdminDomain
"dom ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidArgument: (:) [New-CsOnlineSession], Para
meterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,New-CsOnlineSession

Highlighted

Hi Craig,

 

You have a space between - and OverrideAdminDomain 

 

$session = New-CsOnlineSession -Credential $credential - OverrideAdminDomain “domain.onmicrosoft.com”

Highlighted

actually found the issue I had a space in between - OverrideAdminDomain it should be 

-OverrideAdminDomain 

Highlighted

The last command is still running as my domain admin account.

 

Move-CsUser -Identity sip:firstname.lastname@domain.com -Target sipfed.online.lync.com -Credential $credential -HostedMigrationOverrideUrl https://name.online.lync.com/HostedMigration/hostedmigrationservice.svc

 

Move-CsUser : Login failed for user 'domain\domainadminaccount'.
At line:1 char:1
+ Move-CsUser -Identity sip:firstname.lastname@domain.com -Target
sipfed.online.lyn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Move-CsUser], SqlConnectionEx
ception
+ FullyQualifiedErrorId : Microsoft.Rtc.Common.Data.SqlConnectionException
,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet

Highlighted

My domain admin account wasn't added to the CSAdministrator. i have added it to that group but now I am getting Move-CsUser : Cannot open database "xds" requested by the login. The login
failed.

Highlighted

Another group you need to be a member of is the RTCUniversalServerAdmins

http://communicationsknowledge.blogspot.co.uk/2014/10/enable-csuser-cannot-open-database-xds.html

Highlighted
Also ensure you are part of the RTCUniversalServerAdmins, RTCUniversalUserAdmins
Highlighted

If I point an on premise users to Skype for Business Online instead of moving them, what is the difference?

 

Enable-CsUser -Identity firstname.lastname@domain.com -SipAddress "sip:firstname.lastname@domain.com" -HostingProviderProxyFqdn "sipfed.online.lync.com"

 

Highlighted
Enable-CSUser is setting up a brand new user to have a sip address, policies etc to start using Skype for Business.
Highlighted

If you don't rely on your the conversation history and and your users can accept losing their contact list you can enable them as new users. Otherwise you should stick to migrating them.