Sep 11 2019 07:33 AM
Sep 11 2019 07:50 AM
SolutionThis is a simple script that reads sip address from a csv file and change mode.
$Users = Import-Csv -Path c:\temp\users.csv
foreach($User in $Users)
{
Grant-CsTeamsUpgradePolicy -Identity $User.SipAddress -PolicyName UpgradeToTeams
}
If you want to change for all users in your organisation you can change the default mode instead. Teams Admin Center > Org-wide Settings > Teams Upgrade, change Coexistence mode to Teams only.
Sep 11 2019 08:38 AM
Sep 11 2019 09:26 AM
Sep 11 2019 10:24 AM
Sep 11 2019 11:01 AM
Hi,
Great that you figured it out.
You can't set the notify user switch when switching them to TeamsOnly, since when they are in TeamsOnly mode they will not use the Skype client anymore. So that you have to inform them about with a good user adoption.
Sep 12 2019 06:43 AM
Sep 12 2019 01:37 PM
@Chad Rodriguez It is not a separate switch for notifying users it is different modes. So for SfBWithTeamsCollab you have SfBWithTeamsCollab and SfBWithTeamsCollabWithNotify
Grant-CsTeamsUpgradePolicy -Identity $User.SipAddress -PolicyName SfBWithTeamsCollabWithNotify
or
Grant-CsTeamsUpgradePolicy -Identity $User.SipAddress -PolicyName SfBWithTeamsCollab
Sep 12 2019 01:41 PM
Nov 18 2019 08:21 AM
May 14 2020 01:36 AM
@Linus Cansby same way i am getting error i want to know from which machine i want run the script
May 14 2020 01:53 AM
can you send me to my email address ramece1987@gmail.com for the further explaination i want to complete the 100 user to activat teams useing powershell script
May 14 2020 01:21 PM
@Ram_vignesh1987 If you are moving from Skype for Business Online to Teams you can run it from any machine, just connect to Skype for Business Online Powershell.
May 15 2020 02:30 AM
Do we first connect o365 in powershell then run the script in the powershell even i am not able to find
May 15 2020 04:41 AM
PS C:\Users\Ram_Vignesh> cd c:\
PS C:\> $Users = Import-Csv -Path c:\users.csv
PS C:\> foreach($User in $Users)
>> { Grant-CsTeamsUpgradePolicy -Identity $User. UserPrincipalName -PolicyName UpgradeToTeams }
Grant-CsTeamsUpgradePolicy : The term 'Grant-CsTeamsUpgradePolicy' 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:2 char:3
+ { Grant-CsTeamsUpgradePolicy -Identity $User. UserPrincipalName -Poli ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Grant-CsTeamsUpgradePolicy:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
facing the error could tell me the reason for the error
May 18 2020 01:04 AM
@Ram_vignesh1987 Check this document to download Skype for Business Online powershell module and then how to connect to SfB Online to run the command.
Jul 23 2020 02:13 PM
@Linus Cansby What should be the .csv file look like. I used the userpricipalname in tab and the user name below it? That did not help me. Please share if there is an example file. Thanks
Jul 24 2020 08:05 AM
Jul 25 2020 02:04 AM
Header with SipAddress and then one sip address per row:
SipAddress
user1@contoso.com
user2@contoso.com
Jul 25 2020 02:12 AM
Sep 11 2019 07:50 AM
SolutionThis is a simple script that reads sip address from a csv file and change mode.
$Users = Import-Csv -Path c:\temp\users.csv
foreach($User in $Users)
{
Grant-CsTeamsUpgradePolicy -Identity $User.SipAddress -PolicyName UpgradeToTeams
}
If you want to change for all users in your organisation you can change the default mode instead. Teams Admin Center > Org-wide Settings > Teams Upgrade, change Coexistence mode to Teams only.