Changes in Set-CSUser in Teams Powershell

 For a customer I helped them enable a user for Voice in Teams. Now there are changes comming, so you need to update your scripts. Ran this

Set-CsUser -Identity "sip:fornavn.etternavn@kunde.no" -EnterpriseVoiceEnabled $true -HostedVoiceMail $false -OnPremLineURI tel:+47xxxxxx

Then I get this as a warning

WARNING: OnPremLineURI will be deprecated. Please use LineURI to update user's phone number.

The syntax did work, but for future use you will need to update your scrips to this

Set-CsUser -Identity "sip:fornavn.etternavn@kunde.no" -EnterpriseVoiceEnabled $true -HostedVoiceMail $false -LineURI tel:+47xxxxxx

No comments:

Post a Comment