How to disable voicemail in Teams?

Copper Contributor

Hi,

 

I'm trying to disable the voicemail function in our Teams, but after several changes is still active.

 

My first attempt was using the admin:

 

voicemail.png

 

The second try was with PowerShell:

PS C:\WINDOWS\system32> Import-Module "C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnector.psd1"
PS C:\WINDOWS\system32> Import-Module SkypeOnlineConnector
PS C:\WINDOWS\system32> $userCredential = Get-Credential
PS C:\WINDOWS\system32> $sfbSession = New-CsOnlineSession -Credential $userCredential -OverrideAdminDomain "xxxx.onmicrosoft.com"
PS C:\WINDOWS\system32> Import-PSSession $sfbSession

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.0        tmp_meci30o2.kkl                    {Clear-CsOnlineTelephoneNumberReservation, ConvertTo-JsonForPSWS, Disabl...

PS C:\WINDOWS\system32> Get-CsTeamsCallingPolicy

Identity                   : Global
Description                :
AllowPrivateCalling        : True
AllowWebPSTNCalling        : True
AllowVoicemail             : UserOverride
AllowCallGroups            : True
AllowDelegation            : True
AllowCallForwardingToUser  : True
AllowCallForwardingToPhone : True
PreventTollBypass          : False
BusyOnBusyEnabledType      : Disabled
MusicOnHoldEnabledType     : Enabled
SafeTransferEnabled        : Disabled

PS C:\WINDOWS\system32> Set-CsTeamsCallingPolicy -Identity Global -Allowvoicemail AlwaysDisabled

PS C:\WINDOWS\system32> Get-CsTeamsCallingPolicy

Identity                   : Global
Description                :
AllowPrivateCalling        : True
AllowWebPSTNCalling        : True
AllowVoicemail             : AlwaysDisabled
AllowCallGroups            : True
AllowDelegation            : True
AllowCallForwardingToUser  : True
AllowCallForwardingToPhone : True
PreventTollBypass          : False
BusyOnBusyEnabledType      : Disabled
MusicOnHoldEnabledType     : Enabled
SafeTransferEnabled        : Disabled

 

After these changes, when I try to call a collegue, the voicemail is still enabled.

 

How can I disable this function?

6 Replies

@vcima that doesn't tell you how to disable it so not helpfull

 

I have the same issues seems MS thinks again everyone should have this, users think they should not. 

 

In addition we do not use the platform for calling, so voicemail in teams really should not be available.

You have these options to choose from https://docs.microsoft.com/en-us/microsoftteams/teams-calling-policy#voicemail-is-available-for-rout... and you can change the existing value either in Teams admin center under Voice and "Calling policies" or by using PowerShell.

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

@vcima1210 

 

I have used this information today. To clarify, my findings are that the solutions provided work but the options are not disabled on the end-user devices. I have tested disabling forwarding and voicemail and regardless of the options the end-user specifies they are ignored when the "disable policy" is applied.

 

I'm guessing that Microsoft didn't write the software in a way that the settings could be hidden when disabled but at least the functionality works.


Connect to teams powershell and run the following
Get-CsOnlineVoicemailUserSettings -Identity email@domain.name.com
to check whats set then to disable run the following
Set-CsOnlineVoicemailUserSettings -Identity email@domain.name.com -VoicemailEnabled $false

if you have issues connecting to teams powershell try the below

install-module AzureADPreview
$credential = Get-Credential
Connect-MsolService -Credential $credential
Import-Module MicrosoftTeams
(if the above fails)
$PSVersionTable.PSVersion
ensure version is 5

Install-Module -Name PowerShellGet -Force -AllowClobber
Install-Module -Name MicrosoftTeams -Force -AllowClobber

So there is still no solution for this issue?:unamused: