Office 365

3- Migrate Users from Skype for Business 2015 to Teams

&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2523 " id&equals;"quads-ad2523" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;<h2> <&sol;h2>&NewLine;<h2>Hybrid Integration<&sol;h2>&NewLine;<p>In my <a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;2-skype-for-business-edge-server-deployment-and-hybrid-integration-with-skype-for-business-online&sol;" target&equals;"&lowbar;blank" rel&equals;"noopener">last post about Skype for Business<&sol;a> &sol; Office 365 Skype for Business Online&sol;Teams migration article I discussed the steps of how to create a hybrid environment between Skype for Business on-premises and went through the troubleshooting of each issue I have been through&period; In this article I am going to discuss the migration of users from on-premises to the cloud through UI and PowerShell&period;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2531 " id&equals;"quads-ad2531" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2528 " id&equals;"quads-ad2528" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2524 " id&equals;"quads-ad2524" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<h2>Migrating users<&sol;h2>&NewLine;<p>This article will assume that you are planning to migrate users from Skype for Business Frontend 2015 Server and that you already have a hybrid configuration in place&period; If so then you&&num;8217&semi;re going to fulfill the following prerequisites&colon;<&sol;p>&NewLine;<ul>&NewLine;<li>Update your PowerShell to 5&period;1 Framework <a href&equals;"https&colon;&sol;&sol;www&period;microsoft&period;com&sol;en-us&sol;download&sol;details&period;aspx&quest;id&equals;54616">https&colon;&sol;&sol;www&period;microsoft&period;com&sol;en-us&sol;download&sol;details&period;aspx&quest;id&equals;54616<&sol;a><&sol;li>&NewLine;<li>Install Skype for Business Online Powershell Module <a href&equals;"https&colon;&sol;&sol;www&period;microsoft&period;com&sol;en-us&sol;download&sol;details&period;aspx&quest;id&equals;39366">https&colon;&sol;&sol;www&period;microsoft&period;com&sol;en-us&sol;download&sol;details&period;aspx&quest;id&equals;39366<&sol;a><&sol;li>&NewLine;<li>Create a temporary admin user with MFA disabled&period;<&sol;li>&NewLine;<&sol;ul>&NewLine;<h5>To check the currently installed PowerShell run the following cmdlet<&sol;h5>&NewLine;<p>&dollar;PSVersionTable<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image001&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image001" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image001&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image001" width&equals;"391" height&equals;"147" border&equals;"0" &sol;><&sol;a> &NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2526 " id&equals;"quads-ad2526" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine; &NewLine;<&sol;p>&NewLine;<p>After you Download and install PowerShell 5&period;1 you might need to restart the server&period; In which case the PowerShell will show that it is updated to the required version&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-3&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-3&period;png" alt&equals;"image" width&equals;"604" height&equals;"200" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>After Installing the Skype Online Connector Module&comma; We will be able to connect right after launching PowerShell<&sol;p>&NewLine;<p>To do so type&colon;<&sol;p>&NewLine;<p>Import-Module SkypeOnlineConnector<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-4&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-4&period;png" alt&equals;"image" width&equals;"510" height&equals;"92" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Connecting to Office 365 &lpar;Teams Online or Skype for Business Online&rpar;<&sol;h2>&NewLine;<p>The process of connecting to Office 365 Online PowerShell sounds easy but with MFA enforced in your environment you’ll have a nightmare mix of errors when you try so&period;<&sol;p>&NewLine;<p>I have came through a lot of errors trying to force the use of PowerShell with MFA user authentication but eventually came to realize that Microsoft still does not support MFA for some cmdlets like Move-CsUser for instance&period;<&sol;p>&NewLine;<p>So In short&comma; to connect you’ll need to have a global or Teams admin user with MFA disabled to do so&period;<&sol;p>&NewLine;<h2>To create a new Skype Online Session enter&colon;<&sol;h2>&NewLine;<p>&&num;8211&semi; Make sure you start the regular PowerShell as admin and not Skype for Business Management Shell&period;<&sol;p>&NewLine;<p>If you run these commands from SfB Management Shell you’ll get an error<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-5&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-5&period;png" alt&equals;"image" width&equals;"1028" height&equals;"147" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>So first&comma; We will import the Skype Online connector Module<&sol;p>&NewLine;<p><strong>Import-Module SkypeOnlineConnector<&sol;strong><&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-6&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-6&period;png" alt&equals;"image" width&equals;"476" height&equals;"100" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Then get the OverRidePowershell URI using the command&colon;<&sol;p>&NewLine;<p><strong>Get-CsOnlinePowerShellEndPoint<&sol;strong><&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-7&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-7&period;png" alt&equals;"image" width&equals;"519" height&equals;"333" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<p>Next&comma; We will connect and authenticate to our tenant using the following cmdlet<&sol;p>&NewLine;<p>&dollar;sfbsess &equals; New-CsOnlineSession -Username <a>User&commat;domain&period;onmicrosoft&period;com<&sol;a> -OverRidePowerShellUri <a href&equals;"https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;OcsPowershellOAuth">https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;OcsPowershellOAuth<&sol;a> –Verbose<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-8&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-8&period;png" alt&equals;"image" width&equals;"761" height&equals;"572" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Moving Users to Teams<&sol;h2>&NewLine;<p>To Move users to Office 365&comma; You need to first provide credentials of the User with MFA disabled and then use the command Move-CsUser<&sol;p>&NewLine;<h2>An Example&colon;<&sol;h2>&NewLine;<p>&dollar;Creds &equals; Get-Credential<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-9&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-9&period;png" alt&equals;"image" width&equals;"436" height&equals;"162" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Moving User<&sol;h2>&NewLine;<p>Move-CsUser –Identity <a href&equals;"mailto&colon;user&commat;domain&period;com">user&commat;domain&period;com<&sol;a> –target &OpenCurlyDoubleQuote;sipfed&period;online&period;lync&period;com” –hostedMigrationOverRideUri <a href&equals;"https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;HostedMigration&sol;hostedmigrationservice&period;svc">https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;HostedMigration&sol;hostedmigrationservice&period;svc<&sol;a> –ProxyPool &OpenCurlyDoubleQuote;YourFEPool&period;Domain&period;local” –Credential &dollar;Creds<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-10&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-10&period;png" alt&equals;"image" width&equals;"764" height&equals;"119" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Let’s check the status of the migrated user&comma; The hosting provider attribute is what we care about as it tells us where the user is homed at&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-11&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-11&period;png" alt&equals;"image" width&equals;"695" height&equals;"397" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<h2>Checking the user from Teams Portal<&sol;h2>&NewLine;<p>Users seems to be licensed&comma; online and can now login using the Microsoft Teams app&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-12&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-12&period;png" alt&equals;"image" width&equals;"1028" height&equals;"259" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Bulk Enable Users and assign Tel URI numbers to them<&sol;h2>&NewLine;<p>In case you have a big number of users that you want to enable them online<&sol;p>&NewLine;<p>&num; Please provide your O365 admin credential<&sol;p>&NewLine;<p>&dollar;creds &equals; Get-Credential<&sol;p>&NewLine;<p>-PSSession &lpar;New-CsOnlineSession &dollar;cred&rpar; -AllowClobber<&sol;p>&NewLine;<p>&dollar;csv &equals; Import-csv &&num;8220&semi;C&colon;&bsol;Users&bsol;Mohammed&bsol;users&period;csv&&num;8221&semi;<&sol;p>&NewLine;<p>ForEach &lpar;&dollar;user in &dollar;csv&rpar; &lbrace;<&sol;p>&NewLine;<p>Write-host now enabling &dollar;user&period;alias<&sol;p>&NewLine;<p>Move-CsUser –Identity <a>&dollar;user&period;alias<&sol;a> –target &OpenCurlyDoubleQuote;sipfed&period;online&period;lync&period;com” –hostedMigrationOverRideUri <a href&equals;"https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;HostedMigration&sol;hostedmigrationservice&period;svc">https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;HostedMigration&sol;hostedmigrationservice&period;svc<&sol;a> –ProxyPool &OpenCurlyDoubleQuote;YourFEPool&period;Domain&period;local” –Credential &dollar;creds<&sol;p>&NewLine;<p>&rcub;<&sol;p>&NewLine;<p>The CSV File will look like this<&sol;p>&NewLine;<p>Alias<&sol;p>&NewLine;<p><a href&equals;"mailto&colon;user&commat;domain&period;com">user&commat;domain&period;com<&sol;a><&sol;p>&NewLine;<p><a href&equals;"mailto&colon;user2&commat;domain&period;com">user2&commat;domain&period;com<&sol;a><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<h2>Moving User back to On-premises &lpar;From Office 365 to SfB 2015 &rpar;<&sol;h2>&NewLine;<p>On Frontend Server Launch PowerShell as Administrator then&colon;<&sol;p>&NewLine;<p>A- Import-Module MicrosoftTeams<&sol;p>&NewLine;<p>B- Connect-MicrosoftTeams<&sol;p>&NewLine;<p>After you connect you&&num;8217&semi;ll get the following result&colon;<&sol;p>&NewLine;<p><img class&equals;"alignnone size-full wp-image-8195" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error06&period;jpg" alt&equals;"" width&equals;"725" height&equals;"171" &sol;><&sol;p>&NewLine;<p>Now that you&&num;8217&semi;re connected to your tenant&comma; Try to create a Skype for Business session with the following commands<&sol;p>&NewLine;<p>C- &dollar;sfbsession &equals; New-CsOnlineSession<&sol;p>&NewLine;<p>D- Import-PsSession &dollar;Sfbsession<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2525 " id&equals;"quads-ad2525" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p>You should get the following result<&sol;p>&NewLine;<p><img class&equals;"alignnone wp-image-8196" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error07-1024x374&period;jpg" alt&equals;"" width&equals;"553" height&equals;"202" &sol;><&sol;p>&NewLine;<p>Type the following command to move the user back to On-premises environment&colon;<&sol;p>&NewLine;<p>Now last and most important note is that since I am using Skype for Business 2015 Server&comma; I have to use the parameter -UseOAuth which uses modern authentication&period;<&sol;p>&NewLine;<p>Move-csuser -Identity User&commat;domain&period;com -target PoolHostname&period;Domain&period;Local -UseOAuth -Verbose<&sol;p>&NewLine;<p>This should get it to work finally<&sol;p>&NewLine;<p><img class&equals;"alignnone size-large wp-image-8197" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error08-1024x129&period;jpg" alt&equals;"" width&equals;"474" height&equals;"60" &sol;><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<h2>Errors you might face<&sol;h2>&NewLine;<h2>Error 1&colon;<&sol;h2>&NewLine;<p>When you have your on-premises user enabled for dialin you will probably get the following error if you try to migrate them to Skype for Business online or teams&period;<&sol;p>&NewLine;<p>Move-Csuser &colon;&colon; HostedMisrat ion fault&colon; Error&equals;&lpar;511&rpar;&comma; Description&equals;&lpar;The user could not be moved because he or she is enabled for dial-in conferencing on-premises&comma; but has not been an assigned an Audio Conferencing license in Office 365&period; Users must be licensed before they can be moved to Teams or Skype for Business Online&period;&rpar;<&sol;p>&NewLine;<p>If you are sure do want to use migrate this user without an Audio Conferencing license&comma; specify the<&sol;p>&NewLine;<p>&&num;8220&semi;BypassAudioConferencingCheck&&num;8221&semi; switch&period; &rpar; At line&colon; 1 char&colon; 1<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0014&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image001&lbrack;4&rsqb;" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0014&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image001&lbrack;4&rsqb;" width&equals;"1028" height&equals;"55" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>The Solution is to either provide an audio conferencing license  or as it is showing in the error itself as it says use the switch -BypassAudioConferencingCheck to ignore that&period;<&sol;p>&NewLine;<h2>Error 2&colon;<&sol;h2>&NewLine;<p>When trying to import the session&comma; I got the following error<&sol;p>&NewLine;<p>the runspace state is not valid for this operation for PowerShell Online&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0016&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image001&lbrack;6&rsqb;" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0016&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image001&lbrack;6&rsqb;" width&equals;"739" height&equals;"92" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Solution&colon; To overcome this problem you&&num;8217&semi;ll need to use the overridePowershellUri Parameter in the New-CsOnlineSession in order to connect to Skype online powershell&period;<&sol;p>&NewLine;<p>To get your tenant&&num;8217&semi;s PowerShell URI use the cmdlet Get-CsOnlinePowerShellEndPoint<&sol;p>&NewLine;<p>What you need to use is the AbsoluteUri<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0018&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image001&lbrack;8&rsqb;" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;clip&lowbar;image0018&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image001&lbrack;8&rsqb;" width&equals;"765" height&equals;"560" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Error 3&colon;<&sol;h2>&NewLine;<p>When you try to import the SkypeOnlineConnector module and then run the New-CsOnlineSession cmdlet from Skype for Business Management Shell you’ll get the following error after authenticating&period;<&sol;p>&NewLine;<p>Sign in<&sol;p>&NewLine;<p>Sorry&comma; but we’re having trouble signing you in&period;<&sol;p>&NewLine;<p>AADSTS50011&colon; The reply URL specified in the request does not match the reply URLs configured for the application&colon; &&num;8216&semi;7716031e-6f8b-45a4-b82b-922b1af0fbb4&&num;8217&semi;&period; More details&colon; Reply address did not match because of case sensitivity&period;<&sol;p>&NewLine;<p>Troubleshooting details<&sol;p>&NewLine;<p>If you contact your administrator&comma; send this info to them&period;<br &sol;>Copy info to clipboard   <br &sol;>   <br &sol;>Request Id&colon;  f0f97265-4669-4e4f-bcf7-609469e92f00 <br &sol;>  <br &sol;>Correlation Id&colon;  829c8a2b-f697-416f-bfa6-4a794a229a13<&sol;p>&NewLine;<p>Timestamp&colon;  2021-01-10T23&colon;00&colon;10Z <br &sol;>  <br &sol;>Message&colon;  AADSTS50011&colon; The reply URL specified in the request does not match the reply URLs configured for the application&colon; &&num;8216&semi;7716031e-6f8b-45a4-b82b-922b1af0fbb4&&num;8217&semi;&period; More details&colon; Reply address did not match because of case sensitivity&period; <br &sol;>     <&sol;p>&NewLine;<p>Advanced diagnostics&colon; Disable <br &sol;>   <br &sol;>If you plan on getting support for an issue&comma; turn this on and try to reproduce the error&period; This will collect additional information that will help troubleshoot the issue&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image-13&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"image" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;image&lowbar;thumb-13&period;png" alt&equals;"image" width&equals;"1028" height&equals;"548" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h2>Solution&colon;<&sol;h2>&NewLine;<p>Run the cmdlets from Windows PowerShell as admin not Skype for Business Management shell&period;<&sol;p>&NewLine;<h2>Error 4 <&sol;h2>&NewLine;<p>Get-CsOnlinePowerShellAccessInformation &colon; Unable to get response from https&colon;&sol;&sol;admin4a&period;online&period;lync&period;com&sol;OcsPowershellOAuth&period;<br &sol;>At C&colon;&bsol;Program Files&bsol;Common Files&bsol;Skype for Business Online&bsol;Modules&bsol;SkypeOnlineConnector&bsol;SkypeOnlineConnectorStartup&period;psm1&colon;160 char&colon;20<br &sol;>&plus; &&num;8230&semi; pAuthInfo &equals; Get-CsOnlinePowerShellAccessInformation -PowerShellEndpoi &&num;8230&semi;<br &sol;>&plus; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br &sol;>&plus; CategoryInfo &colon; NotSpecified&colon; &lpar;&colon;&rpar; &lbrack;Get-CsOnlinePowerShellAccessInformation&rsqb;&comma; Exception<br &sol;>&plus; FullyQualifiedErrorId &colon; System&period;Exception&comma;Microsoft&period;Rtc&period;Management&period;OnlineConnector&period;GetPowerShellAccessInformationCmdlet<&sol;p>&NewLine;<p><img class&equals;"alignnone wp-image-8194 " src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;07&sol;teams-error04&period;jpg" alt&equals;"" width&equals;"605" height&equals;"54" &sol;><&sol;p>&NewLine;<h2>Error 5<&sol;h2>&NewLine;<p>Move-CsUser<br &sol;>&lbrack;Y&rsqb; Yes &lbrack;A&rsqb; Yes to All &lbrack;N&rsqb; No &lbrack;L&rsqb; No to All &lbrack;S&rsqb; Suspend &lbrack;&quest;&rsqb; Help &lpar;default is &&num;8220&semi;Y&&num;8221&semi;&rpar;&colon; y<br &sol;>move-csuser &colon; The underlying connection was closed&colon; An unexpected error occurred on a send&period;<br &sol;>At line&colon;1 char&colon;1<br &sol;>&plus; move-csuser -identity user&commat;domain&period;com -target D2-POOL01&period;clou &&num;8230&semi;<br &sol;>&plus; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br &sol;>&plus; CategoryInfo &colon; InvalidOperation&colon; &lpar;CN&equals;user &&num;8230&semi;domain&comma;DC&equals;net&colon;OCSADUser&rpar; &lbrack;Move-CsUser&rsqb;&comma; WebException<br &sol;>&plus; FullyQualifiedErrorId &colon; MoveError&comma;Microsoft&period;Rtc&period;Management&period;AD&period;Cmdlets&period;MoveOcsUserCmdlet<&sol;p>&NewLine;<h2>Solution&colon;<&sol;h2>&NewLine;<p>1- Make sure you have the proper Powershell version&period;<&sol;p>&NewLine;<p>2- Make sure you enable TLS1&period;2 as default&comma; for a quick solution use this PowerShell script <&sol;p>&NewLine;<p>&lbrack;System&period;Net&period;ServicePointManager&rsqb;&colon;&colon;SecurityProtocol &equals; &lbrack;System&period;Net&period;SecurityProtocolType&rsqb;&colon;&colon;Tls12&semi;<&sol;p>&NewLine;<p>3- Use MFA enabled account by following these steps to login and move user&period;<&sol;p>&NewLine;<p>A- Import-Module MicrosoftTeams<&sol;p>&NewLine;<p>B- Connect-MicrosoftTeams<&sol;p>&NewLine;<p>After you connect you&&num;8217&semi;ll get the following result&colon;<&sol;p>&NewLine;<p><img class&equals;"alignnone size-full wp-image-8195" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error06&period;jpg" alt&equals;"" width&equals;"725" height&equals;"171" &sol;><&sol;p>&NewLine;<p>Now that you&&num;8217&semi;re connected to your tenant&comma; Try to create a Skype for Business session with the following commands<&sol;p>&NewLine;<p>C- &dollar;sfbsession &equals; New-CsOnlineSession<&sol;p>&NewLine;<p>D- Import-PsSession &dollar;Sfbsession<&sol;p>&NewLine;<p>You should get the following result<&sol;p>&NewLine;<p><img class&equals;"alignnone wp-image-8196" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error07-1024x374&period;jpg" alt&equals;"" width&equals;"553" height&equals;"202" &sol;><&sol;p>&NewLine;<p>Now last and most important note is that since I am using Skype for Business 2015 Server&comma; I have to use the parameter -UseOAuth which uses modern authentication&period;<&sol;p>&NewLine;<p>This should get it to work finally<&sol;p>&NewLine;<p><img class&equals;"alignnone size-large wp-image-8197" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2021&sol;01&sol;teams-error08-1024x129&period;jpg" alt&equals;"" width&equals;"474" height&equals;"60" &sol;><&sol;p>&NewLine;<p>References&colon;<&sol;p>&NewLine;<p><a title&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;upgrade-to-teams-on-prem-overview" href&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;upgrade-to-teams-on-prem-overview">https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;upgrade-to-teams-on-prem-overview<&sol;a><&sol;p>&NewLine;<p><a title&equals;"https&colon;&sol;&sol;social&period;technet&period;microsoft&period;com&sol;wiki&sol;contents&sol;articles&sol;34339&period;skype-for-business-online-enable-your-tenant-for-modern-authentication&period;aspx" href&equals;"https&colon;&sol;&sol;social&period;technet&period;microsoft&period;com&sol;wiki&sol;contents&sol;articles&sol;34339&period;skype-for-business-online-enable-your-tenant-for-modern-authentication&period;aspx">https&colon;&sol;&sol;social&period;technet&period;microsoft&period;com&sol;wiki&sol;contents&sol;articles&sol;34339&period;skype-for-business-online-enable-your-tenant-for-modern-authentication&period;aspx<&sol;a><&sol;p>&NewLine;<p><a title&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;hybrid&sol;move-users-from-on-premises-to-skype-for-business-online" href&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;hybrid&sol;move-users-from-on-premises-to-skype-for-business-online">https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;hybrid&sol;move-users-from-on-premises-to-skype-for-business-online<&sol;a><&sol;p>&NewLine;<p><a title&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;teams-powershell-install" href&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;teams-powershell-install">https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;microsoftteams&sol;teams-powershell-install<&sol;a><&sol;p>&NewLine;<p><a title&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;troubleshoot&sol;hybrid-move-sfb-online&sol;move-csuser-hostedmigration-fault-507" href&equals;"https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;troubleshoot&sol;hybrid-move-sfb-online&sol;move-csuser-hostedmigration-fault-507">https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;skypeforbusiness&sol;troubleshoot&sol;hybrid-move-sfb-online&sol;move-csuser-hostedmigration-fault-507<&sol;a><&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2530 " id&equals;"quads-ad2530" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p><a href&equals;"&lowbar;wp&lowbar;link&lowbar;placeholder" data-wplink-edit&equals;"true">https&colon;&sol;&sol;docs&period;microsoft&period;com&sol;en-us&sol;powershell&sol;module&sol;skype&sol;move-csuser&quest;view&equals;skype-ps<&sol;a><&sol;p>&NewLine;&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2529 " id&equals;"quads-ad2529" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;

moh10ly

View Comments

  • this procedure takes long time go to Attribute Editor of particullar user and change the value of msRTCSIP-DeploymentLocator to sipfed.online.lync.com thats it no need this long command

Recent Posts

Reset passwords for Active Directory Users

Reset and manage your Active Directory users' Passwords Active Directory is one of the most…

3 years ago

Finding Exchange Database hidden mailboxes. ​

Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…

3 years ago

Setting up ADConnect and PTA (Password auth through) servers agents behind proxy

If you're using a Proxy server in your firewall or in your network and have…

3 years ago

Get Report of Active Directory Locked Accounts and Machine they logged in from

Story:I got some clients  that have reported some of their users being locked out and…

3 years ago

Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Delegate Permissions This is a code that I have wrote recently to check if an…

3 years ago

Retrieving attachments from Exchange mailbox using python

Story: I got a request from a client who constantly gets CVs and have to…

4 years ago

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298