Skip to main content

Move-CsUser bulk using script from SfB to Teams

Moving users from Skype for business to Teams part of the migration process, We can do this process using GUI and also we can use the PowerShell to do the work. Following scripts i have added to my github too just incase someone want to take from it instead of my blog post.

In my script i was using csv file with one header which is "SipAddress". List down all the SipAddress of users you plan to move to Teams prior to following steps. 



  




Define following variables 

$cr=Get-Credential

$url="https://admin10.online.lync.com/HostedMigration/hostedmigrationService.svc"

Important:  provided account should have global admin or Teams admin & User Admin with SfB CSAdministrator permission 


#//Add all the users SIP address which required to move to Teams//

$User = import-csv .\Userslist.csv
    ForEach ($Alluser in $User)
    {
    Move-CsUser -Identity $AllUser.SipAddress -Target "sipfed.online.lync.com" -  ProxyPool "lyncpool.abc.com" -Credential $cr -HostedMigrationOverrideUrl $url -Verbose

 

#Convert TeamsOnly
        Grant-CsTeamsUpgradePolicy -PolicyName UpgradeToTeams -Identity $AllUser.SipAddress -verbose
 

#EnterpriseVoiceEnabled if you need to set remove and in my case i have remove it.
      #Set-CsUser -identity $AllUser.SipAddress -EnterpriseVoiceEnabled $true -verbose
}


Next article ill be sharing migration and bulk number mapping both using PowerShell


Comments

Popular posts from this blog

This Web browser or operating system might not be compatible with Microsoft Silverlight

Crazy error getting from Silver Light while your trying to open newly installed skype for business 2015 on top of Windows Server 2016. Since i installed Silverlight already i was checking control panel the version what i installed its latest and which you can confirm by going to this URL -  https://www.microsoft.com/getsilverlight/locale/en-us/html/Microsoft%20Silverlight%20Release%20History.htm     According to above web and control panel it says same version but my setup cant access the configuration wizard getting following error. to fix nothing do just that add this URL ( https://<pool01FQDN>/cscp to trusted sites and refresh the page then this will go. Note: This error will mislead to check on other browser version and etc and you might check supported version for WinSvr 2016. No required those. Hope this will save your time. Please like FB pages you find more - https://www.facebook.com/office365wwc/   SfB - https://www.facebook.com/Unofficial-Skype-for-Bu