Forum Discussion
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 "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?
- You have these options to choose from https://docs.microsoft.com/en-us/microsoftteams/teams-calling-policy#voicemail-is-available-for-routing-inbound-calls 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
- James_UKCopper Contributor
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.
- m77ewlBrass 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
- GloriaKeepsWorkingCopper Contributor
So there is still no solution for this issue?