Set-CsOnlineVoicemailUserSettings
Use the Set-CsOnlineVoicemailUserSettings cmdlet to modify the online voicemail user settings of a specific user. New online voicemail user settings of the user would be returned after executing.
Syntax
Default (Default)
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>]
Description
The Set-CsOnlineVoicemailUserSettings cmdlet lets tenant admin modify the online voicemail user settings of a specific user in the organization. New online voicemail user settings of the user would be returned after executing. For example, tenant admin could enable/disable voicemail, change voicemail prompt language, modify out-of-office voicemail greeting settings, or setup simple call answer rules. Only those properties that tenant admin have actually provided with be modified. If an online voicemail user setting was not set by tenant admin, it would remain the old value after this cmdlet has been executed.
Examples
Example 1
Set-CsOnlineVoicemailUserSettings -Identity sip:user1@contoso.com -VoicemailEnabled $true
This example changes VoicemailEnabled setting to true for the user with SIP URI sip:user1@contoso.com.
Example 2
Set-CsOnlineVoicemailUserSettings -Identity user2@contoso.com -PromptLanguage "en-US" -OofGreetingFollowCalendarEnabled $false
This example changes PromptLanguage setting to "en-US" and OofGreetingFollowCalendarEnabled setting to false for user2@contoso.com.
Example 3
Set-CsOnlineVoicemailUserSettings -Identity user3@contoso.com -CallAnswerRule PromptOnlyWithTransfer -TransferTarget sip:user4@contoso.com
This example changes CallAnswerRule setting to PromptOnlyWithTransfer and set TransferTarget to "sip:user4@contoso.com" for user3@contoso.com.
Example 4
Set-CsOnlineVoicemailUserSettings -Identity user5@contoso.com -CallAnswerRule VoicemailWithTransferOption -TransferTarget "+14255551234"
This example changes CallAnswerRule setting to VoicemailWithTransferOption and set TransferTarget to "+14255551234" for user5@contoso.com..
Example 5
Set-CsOnlineVoicemailUserSettings -Identity user6@contoso.com -DefaultGreetingPromptOverwrite "Hi, I am currently not available."
This example changes DefaultGreetingPromptOverwrite setting to "Hi, I am currently not available." for user6@contoso.com.
Parameters
-CallAnswerRule
Applicable: Microsoft Teams
The CallAnswerRule parameter represents the value of the call answer rule, which can be any of the following:
- DeclineCall
- PromptOnly
- PromptOnlyWithTransfer
- RegularVoicemail
- VoicemailWithTransferOption
Parameter properties
Type: | Object |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Applicable: Microsoft Teams
Prompts you for confirmation before executing the command.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultGreetingPromptOverwrite
Applicable: Microsoft Teams
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, the voicemail service will play this overwrite greeting instead of the default normal greeting in the voicemail deposit scenario.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultOofGreetingPromptOverwrite
Applicable: Microsoft Teams
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 DefaultOofGreetingPromptOverwrite is not empty, the voicemail service will play this overwrite greeting instead of the default out-of-office greeting in the voicemail deposit scenario.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
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 input if required.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: Microsoft Teams
The Identity parameter represents the ID of the specific user in your organization; this can be either a SIP URI or an Object ID.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OofGreetingEnabled
Applicable: Microsoft Teams
The OofGreetingEnabled parameter represents whether to play out-of-office greeting in voicemail deposit scenario.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OofGreetingFollowAutomaticRepliesEnabled
Applicable: Microsoft Teams
The OofGreetingFollowAutomaticRepliesEnabled parameter represents whether to play out-of-office greeting in voicemail deposit scenario when user set automatic replies in Outlook.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PromptLanguage
Applicable: Microsoft Teams
The PromptLanguage parameter represents the language that is used to play voicemail prompts.
The following languages are supported:
- "ar-EG" (Arabic - Egypt)
- "ar-SA" (Arabic - Saudi Arabia)
- "bg-BG" (Bulgarian - Bulgaria)
- "ca-ES" (Catalan - Catalan)
- "cy-GB" (Welsh - United Kingdom)
- "cs-CZ" (Czech - Czech Republic)
- "da-DK" (Danish - Denmark)
- "de-AT" (German - Austria)
- "de-CH" (German - Switzerland)
- "de-DE" (German - Germany)
- "el-GR" (Greek - Greece)
- "en-AU" (English - Australia)
- "en-CA" (English - Canada)
- "en-GB" (English - United Kingdom)
- "en-IE" (English - Ireland)
- "en-IN" (English - India)
- "en-PH" (English - Philippines)
- "en-US" (English - United States)
- "en-ZA" (English - South Africa)
- "es-ES" (Spanish - Spain)
- "es-MX" (Spanish - Mexico)
- "et-EE" (Estonian - Estonia)
- "fi-FI" (Finnish - Finland)
- "fr-BE" (French - Belgium)
- "fr-CA" (French - Canada)
- "fr-CH" (French - Switzerland)
- "fr-FR" (French - France)
- "he-IL" (Hebrew - Israel)
- "hi-IN" (Hindi - India)
- "hr-HR" (Croatian - Croatia)
- "hu-HU" (Hungarian - Hungary)
- "id-ID" (Indonesian - Indonesia)
- "it-IT" (Italian - Italy)
- "ja-JP" (Japanese - Japan)
- "ko-KR" (Korean - Korea)
- "lt-LT" (Lithuanian - Lithuania)
- "lv-LV" (Latvian - Latvia)
- "nl-BE" (Dutch - Belgium)
- "nl-NL" (Dutch - Netherlands)
- "nb-NO" (Norwegian, Bokmål - Norway)
- "pl-PL" (Polish - Poland)
- "pt-BR" (Portuguese - Brazil)
- "pt-PT" (Portuguese - Portugal)
- "ro-RO" (Romanian - Romania)
- "ru-RU" (Russian - Russia)
- "sk-SK" (Slovak - Slovakia)
- "sl-SI" (Slovenian - Slovenia)
- "sv-SE" (Swedish - Sweden)
- "th-TH" (Thai - Thailand)
- "tr-TR" (Turkish - Turkey)
- "vi-VN" (Vietnamese - Viet Nam)
- "zh-CN" (Chinese - Simplified, PRC)
- "zh-TW" (Chinese - Traditional, Taiwan)
- "zh-HK" (Chinese - Traditional, Hong Kong S.A.R.)
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ShareData
Applicable: Microsoft Teams
Specifies whether voicemail and transcription data is shared with the service for training and improving accuracy.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-TransferTarget
Applicable: Microsoft Teams
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 in your organization. For user with Enterprise Voice enabled, a valid telephone number could also be accepted as TransferTarget.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VoicemailEnabled
Applicable: Microsoft Teams
The VoicemailEnabled parameter represents whether to enable voicemail service. If set to $false, the user has no voicemail service.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Applicable: Microsoft Teams
Describes what would happen if you executed the command without actually executing the command.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.