Migrate Skype User

%3CLINGO-SUB%20id%3D%22lingo-sub-344960%22%20slang%3D%22en-US%22%3EMigrate%20Skype%20User%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-344960%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%3C%2FP%3E%3CP%3EI%20am%20using%20hybrid%20environment%20i%20am%20using%20SFB2015%2C%20on%20skype%20online%20powershell%20module%2C%20i%20want%20to%20migrate%20skype%20from%20onprem%20to%20online%2C%26nbsp%3B%20i%20have%20used%20the%20below%20syntax%20i%20am%20getting%20the%20error%3C%2FP%3E%3CP%3EGet-CsUser%20-Identity%20sip%3Amyonpremuser%40mydomain.com%20%7C%20Move-CsUser%20-Target%20sipfed.online.lync.com%20-Credential%20%24creds%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-CsUser%20%3A%20The%20term%20'Get-CsUser'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%20file%2C%20or%20operable%20program.%20Check%20the%20spelling%20of%20the%20name%2C%20or%20if%20a%20path%20was%20included%2C%20verify%20that%20the%20path%20is%20correct%20and%20try%20again.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Get-CsUser%20-Identity%20sip%3Amyonpremuser%40mydomain.com%20%7C%20Move-CsUser%20-Ta%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3A%20ObjectNotFound%3A%20(Get-CsUser%3AString)%20%5B%5D%2C%20CommandNotFoundException%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20CommandNotFoundException%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-344960%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInstant%20Messaging%20%26amp%3B%20Presence%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-349624%22%20slang%3D%22en-US%22%3ERe%3A%20Migrate%20Skype%20User%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-349624%22%20slang%3D%22en-US%22%3EYou%20run%20it%20from%20on-premises%2C%20you%20can%20also%20use%20the%20Skype%20Control%20Panel.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fskypeforbusiness%2Fhybrid%2Fmove-users-from-on-premises-to-skype-for-business-online%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fskypeforbusiness%2Fhybrid%2Fmove-users-from-on-premises-to-skype-for-business-online%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-347907%22%20slang%3D%22en-US%22%3ERe%3A%20Migrate%20Skype%20User%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-347907%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20have%20used%20the%20below%20syntax%20on%20skype%20onprem%20i%20am%20getting%20below%20error.%3CBR%20%2F%3Emy%20account%20on%20skype%20onprem%20is%20different%20than%20skype%20online%20and%20MFA%20is%20enabled%20for%20my%20skyponline%20user.%3C%2FP%3E%3CP%3E%3CSTRONG%3EGet-CsUser%20-Identity%20sip%3Aonpremuser%40flydubai.com%20%7C%20Move-CsUser%20-Target%20sipfed.online.lync.com%20-Credential%20%24creds%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EConfirm%3CBR%20%2F%3EMove-CsUser%3CBR%20%2F%3E%5BY%5D%20Yes%20%5BA%5D%20Yes%20to%20All%20%5BN%5D%20No%20%5BL%5D%20No%20to%20All%20%5BS%5D%20Suspend%3CBR%20%2F%3E%5B%3F%5D%20Help(default%20is%20%22Y%22)%3A%20A%3CBR%20%2F%3EMove-CsUser%20%3A%20Failed%20to%20logon%20with%20given%20credentials.%20Make%20sure%20correct%20user%3CBR%20%2F%3Ename%20and%20password%20provided.%20At%20line%3A1%20char%3A55%20%2B%20Get-CsUser%20-Identity%20sip%3Aonpremuser%40flydubai.com%20%7C%20Move-CsUser%20-Target%3CBR%20%2F%3Esipfed%20...%3CBR%20%2F%3E%2B%3CBR%20%2F%3E~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20InvalidOperation%3A%20%5BMove-CsUser%5D%2C%20CommonAuthException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20MoveError%2CMicrosoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-345122%22%20slang%3D%22en-US%22%3ERe%3A%20Migrate%20Skype%20User%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-345122%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooks%20like%20the%20Skype%20for%20Business%20powershell%20is%20not%20loaded%2C%20you%20need%20the%20On-premises%20powershell%20module%20to%20be%20loaded%20to%20be%20able%20to%20run%26nbsp%3B%3CSPAN%3EGet-CsUser.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi Experts

I am using hybrid environment i am using SFB2015, on skype online powershell module, i want to migrate skype from onprem to online,  i have used the below syntax i am getting the error

Get-CsUser -Identity sip:myonpremuser@mydomain.com | Move-CsUser -Target sipfed.online.lync.com -Credential $creds

 

Get-CsUser : The term 'Get-CsUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-CsUser -Identity sip:myonpremuser@mydomain.com | Move-CsUser -Ta ...
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-CsUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 

 

3 Replies

Hi,

 

Looks like the Skype for Business powershell is not loaded, you need the On-premises powershell module to be loaded to be able to run Get-CsUser.

 

I am have used the below syntax on skype onprem i am getting below error.
my account on skype onprem is different than skype online and MFA is enabled for my skyponline user.

Get-CsUser -Identity sip:onpremuser@flydubai.com | Move-CsUser -Target sipfed.online.lync.com -Credential $creds

Confirm
Move-CsUser
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend
[?] Help(default is "Y"): A
Move-CsUser : Failed to logon with given credentials. Make sure correct user
name and password provided. At line:1 char:55 + Get-CsUser -Identity sip:onpremuser@flydubai.com | Move-CsUser -Target
sipfed ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: [Move-CsUser], CommonAuthException
+ FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet

You run it from on-premises, you can also use the Skype Control Panel.
https://docs.microsoft.com/en-us/skypeforbusiness/hybrid/move-users-from-on-premises-to-skype-for-bu...