Commands › Microsoft Teams

Set-CsOnlineVoicemailUserSettings

Microsoft Teams MicrosoftTeams Set-*

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)

ParameterTypeRequiredWhat it controls
-CallAnswerRule Object The CallAnswerRule parameter represents the value of the call answer rule, which can be any of the following:
-Confirm SwitchParameter Prompts you for confirmation before executing the command.
-DefaultGreetingPromptOverwrite String The DefaultGreetingPromptOverwrite parameter represents the contents that overwrite the default normal greeting prompt. If the user's normal custom greeting is not set and DefaultGreetingPromptOverwrite is not empty,...
-DefaultOofGreetingPromptOverwrite String The DefaultOofGreetingPromptOverwrite parameter represents the contents that overwrite the default out-of-office greeting prompt. If the user's out-of-office custom greeting is not set and...
-Force SwitchParameter Specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative...
-Identity String yes The Identity parameter represents the ID of the specific user in your organization; this can be either a SIP URI or an Object ID.
-OofGreetingEnabled Boolean The OofGreetingEnabled parameter represents whether to play out-of-office greeting in voicemail deposit scenario.
-OofGreetingFollowAutomaticRepliesEnabled Boolean The OofGreetingFollowAutomaticRepliesEnabled parameter represents whether to play out-of-office greeting in voicemail deposit scenario when user set automatic replies in Outlook.
-OofGreetingFollowCalendarEnabled Boolean The OofGreetingFollowCalendarEnabled parameter represents whether to play out-of-office greeting in voicemail deposit scenario when user has an out-of-office event set up in their Outlook calendar.
-PromptLanguage String The PromptLanguage parameter represents the language that is used to play voicemail prompts.
-ShareData Boolean Specifies whether voicemail and transcription data is shared with the service for training and improving accuracy.
-TransferTarget String The TransferTarget parameter represents the target to transfer the call when call answer rule set to PromptOnlyWithTransfer or VoicemailWithTransferOption. Value of this parameter should be a SIP URI of another user...
-VoicemailEnabled Boolean The VoicemailEnabled parameter represents whether to enable voicemail service. If set to $false, the user has no voicemail service.
-WhatIf SwitchParameter Describes what would happen if you executed the command without actually executing the command.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.