There is two ways to change the Voice Policy with Lync 2013.
- Active Directory (advanced)
First of all, we will se how to get the Voice Policy from an Application Endpoint (Workflow, Dialin etc…) :
Get-CsApplicationEndpoint -Identity "*WorkflowName*" | Select VoicePolicy Get-CsApplicationEndpoint -Identity "*WorkflowName*" | FL *
So if you want to change the voice Policy of a Workflow with powershell, here is the cmdlet :
Get-CsApplicationEndpoint -Identity "*WorkflowName*" | GrantCsVoicePolicy -PolicyName "VPolicy-US-International"
Now we are going to be more “serious” by going to make changes in the Active Directory for the workflow itself.
First, depending on your environment, the RTC services folder can be found in different paths:
- [Configuration]/Services/RTC Services/Application Contacts
- [Domain Naming Context]/Services/Microsoft/RTC Services/Application Contacts
Once you’re in the path, search for the Active Directory Contact object that is your workflow, and modifies the attribute of msRTCSIP-UserPolicies.
It may have some entries like “0=123,1=6,7=2,…”
The “7=” is the voice Policy pointer. So to assign the correct voice Policy number to the Contact, Show the anchors of the voice policies in powershell and add it to the contact.
Powershell Voice Policy Anchor :
Get-CsVoicePolicy | select Anchor
This is working for all the policies.