Disable Voicemail transcription for select users in Microsoft Teams

Author by Brett Janzen

First need to create the new policy.

New-CsOnlineVoicemailPolicy -Identity "TranscriptionDisabled" -EnableTransciption $false

https://docs.microsoft.com/en-us/powershell/module/skype/new-csonlinevoicemailpolicy?view=skype-ps

From there you can “grant” users the new policy.

Grant-CsOnlineVoicemailPolicy -Identity "sip:user@contoso.com" -PolicyName TranscriptionDisabled

https://docs.microsoft.com/en-us/powershell/module/skype/grant-csonlinevoicemailpolicy?view=skype-ps

Modify a already existing Policy

Set-CsOnlineVoicemailPolicy -Identity "TranscriptionDisabled" -MaximumRecordingLength ([TimeSpan]::FromSeconds(60))

https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinevoicemailpolicy?view=skype-ps

To add a list of users we can use a recursive script to run through a txt file

Putting a txt file in the same location that you run the script from or modify the (Get-content “c:\temp\userlist.txt) will allow the script to pick up the user list.

 ForEach ($UserDisableTranscription in (Get-Content "userlist.txt")) {
                 grant-CsOnlineVoicemailPolicy -Identity $UserDisableTranscription -PolicyName TranscriptionDisabled
                 }