Monday, January 10, 2022

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 



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 "" -  ProxyPool "" -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

No comments:

Post a Comment

Microsoft Teams meetings - End Meeting for All Participants

Lot of customers looking way to end the meeting for all,  when presenter is done with the meeting. first of for this function to work correc...