Commands › Microsoft Teams
Set-CsOnlineVoicemailUserSettings
Modify the online voicemail user settings of a specific user. New online voicemail user settings of the user would be returned after executing.
Quick start script
# Set-CsOnlineVoicemailUserSettings — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsOnlineVoicemailUserSettings
$before | Format-List
# 3. Make the change (dry run first)
Set-CsOnlineVoicemailUserSettings -Identity <String> -WhatIf
Set-CsOnlineVoicemailUserSettings -Identity <String>
# 4. Verify and diff
$after = Get-CsOnlineVoicemailUserSettings
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-CsOnlineVoicemailUserSettings [-Identity] <string> [-CallAnswerRule <Object>] [-DefaultGreetingPromptOverwrite <string>]
[-DefaultOofGreetingPromptOverwrite <string>] [-Force] [-OofGreetingEnabled <boolean>] [-OofGreetingFollowAutomaticRepliesEnabled <boolean>]
[-OofGreetingFollowCalendarEnabled <boolean>] [-PromptLanguage <string>] [-ShareData <boolean>] [-TransferTarget <string>]
[-VoicemailEnabled <boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (14)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.