Forum Discussion

vcima1210's avatar
vcima1210
Copper Contributor
May 14, 2020

How to disable voicemail in Teams?

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:

 

 

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 "http://devzapiens.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

  • James_UK's avatar
    James_UK
    Copper Contributor

    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.

    • m77ewl's avatar
      m77ewl
      Brass Contributor

      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

  • vcima's avatar
    vcima
    Brass Contributor

    vcima1210  https://docs.microsoft.com/en-us/microsoftteams/set-up-phone-system-voicemail

Resources