More changes to Teams Powershell

 Teams Powershell changes

As you for sure might have see in the M365 admin center, you might have got this message

Well this will inpact your code in certain way.
First get the lates Teams Powshell version from here 3.0.0 is the current version at present time.
How will this affect your code? Well the Set-CSUser is now like this
Set-CsPhoneNumberAssignment -Identity firstname.lastname@company.no -PhoneNumber +47xxxxxxxx -PhoneNumberType DirectRouting

There are more information about it here: https://docs.microsoft.com/en-us/powershell/module/teams/set-csphonenumberassignment?view=teams-ps

So now it's time to start using this before it stops working.

No comments:

Post a Comment