How to Assign Polices and Numbers Teams calling in Powershell

Connect-MicrosoftTeams

[pastacode lang=”powershell” manual=”Get-CsOnlineUser%20%7C%20Where-Object%20%7B(%24_.EnterpriseVoiceEnabled%20-eq%20%22True%22)%7D%20%20%7C%20Select%20UserPrincipalName%2CTenantDialPlan%2COnlineVoiceRoutingPolicy%2CTeamsEmergencyCallRoutingPolicy” message=”How to check all users” highlight=”” provider=”manual”/]

[pastacode lang=”powershell” manual=”Set-CsPhoneNumberAssignment%20-Identity%20adamfowler%40contoso.com%20-PhoneNumber%20%2B61987654321%20-PhoneNumberType%20DirectRouting” message=”Assigning Numbers in Powershell” highlight=”” provider=”manual”/]

[pastacode lang=”powershell” manual=”Get-CsOnlineUser%20%7C%20Where-Object%20%7B(%24_.EnterpriseVoiceEnabled%20-eq%20%22True%22)%7D%20%20%7C%20Grant-CsTenantDialPlan%20-PolicyName%20%2202%20Local%22%0A%0AGet-CsOnlineUser%20%7C%20Where-Object%20%7B(%24_.EnterpriseVoiceEnabled%20-eq%20%22True%22)%7D%20%20%7C%20Grant-CsOnlineVoiceRoutingPolicy%20-PolicyName%20%22XXXXXX%22%0A%0AGet-CsOnlineUser%20%7C%20Where-Object%20%7B(%24_.EnterpriseVoiceEnabled%20-eq%20%22True%22)%7D%20%20%7C%20Grant-CsTeamsEmergencyCallRoutingPolicy%20-PolicyName%20%22xxxxx.teams.com.au%22%0A” message=”How to assign users DialPlan\VoiceRoutingPolicy and EmergencyCallRoutingPolicy” highlight=”” provider=”manual”/]

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...