Disable Voicemail transcription for select users in Microsoft Teams

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
                 } 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: