unable to enable skype for business for a user

%3CLINGO-SUB%20id%3D%22lingo-sub-830551%22%20slang%3D%22en-US%22%3Eunable%20to%20enable%20skype%20for%20business%20for%20a%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-830551%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%3C%2FP%3E%3CP%3EI%20am%20using%20Exchange%20hybrid%20environment%2C%20so%20i%20have%20migrated%20the%20user%20to%20cloud%2C%20but%20skype%20for%20the%20user%20was%20onprem%2C%26nbsp%3B%20so%20i%20tried%20to%20migrate%20it%20to%20cloud%20but%20i%20could%20not.%20so%20i%20have%20disabled%20skype%20for%20the%20user%20on%20onpremusing%20the%20below%20syntax%3C%2FP%3E%3CP%3EDisable-CsUser%20-Identity%20%22user1%40contoso.com%22%3CBR%20%2F%3EThen%20i%20went%20to%20ADSIEdit%20and%20remove%20the%20entry%20SRV%3A%20from%20msRTCSIP-DeploymentLocator%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhen%20i%20try%20to%20run%20the%20below%20command%20i%20am%20getting%20error%3C%2FP%3E%3CP%3EPS%20C%3A%5C%26gt%3B%20%3CSTRONG%3EEnable-CsUser%20-Identity%20user1%20-SipAddress%20%22sip%3Auser1%40contoso.com%22%20-HostingProviderProxyFqdn%20%22sipfed.online.lync.com%22%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EEnable-CsUser%20%3A%20Filter%20failed%20to%20return%20unique%20result%2C%20%22%5BSipAddress%20%3A%20sip%3Auser1%40contoso.com%5D%20%22%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Enable-CsUser%20-Identity%20user1%20-SipAddress%20%22sip%3Auser1%40flydubai.com%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20InvalidOperation%3A%20(%3A)%20%5BEnable-CsUser%5D%2C%20InvalidOperationException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20ProcessRecord%2CMicrosoft.Rtc.Management.AD.Cmdlets.EnableOcsUserCmdlet%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-830551%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeployment%20%26amp%3B%20Operations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDesktop%20Client%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESign-in%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESkype%20Operations%20Framework%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-854041%22%20slang%3D%22en-US%22%3ERe%3A%20unable%20to%20enable%20skype%20for%20business%20for%20a%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854041%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144450%22%20target%3D%22_blank%22%3E%40Roger%20Roger%3C%2FA%3E%26nbsp%3BI%20suggest%20you%20start%20out%20with%20a%20Get-CsAdUser%20%22sip%3Auser1%40contoso.com%22%2C%20make%20sure%20you%20only%20get%20one%20result%20returned.%3CBR%20%2F%3E%3CBR%20%2F%3ESecondly%2C%20you%20didn't%20state%20the%20Skype%20for%20Business%20is%20in%20hybrid%20mode%2C%20did%20you%20complete%20all%20the%20necessary%20steps%3F%3F%20If%20this%20is%20missing%20you%20will%20not%20be%20able%20to%20move%20users%20to%20Skype%20Online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2FKenneth%20ML%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi All

I am using Exchange hybrid environment, so i have migrated the user to cloud, but skype for the user was onprem,  so i tried to migrate it to cloud but i could not. so i have disabled skype for the user on onpremusing the below syntax

Disable-CsUser -Identity "user1@contoso.com"
Then i went to ADSIEdit and remove the entry SRV: from msRTCSIP-DeploymentLocator:


When i try to run the below command i am getting error

PS C:\> Enable-CsUser -Identity user1 -SipAddress "sip:user1@contoso.com" -HostingProviderProxyFqdn "sipfed.online.lync.com"


Enable-CsUser : Filter failed to return unique result, "[SipAddress : sip:user1@contoso.com] "
At line:1 char:1
+ Enable-CsUser -Identity user1 -SipAddress "sip:user1@flydubai.com ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Enable-CsUser], InvalidOperationException
+ FullyQualifiedErrorId : ProcessRecord,Microsoft.Rtc.Management.AD.Cmdlets.EnableOcsUserCmdlet

1 Reply

@Roger Roger I suggest you start out with a Get-CsAdUser "sip:user1@contoso.com", make sure you only get one result returned.

Secondly, you didn't state the Skype for Business is in hybrid mode, did you complete all the necessary steps?? If this is missing you will not be able to move users to Skype Online.

 

/Kenneth ML