Edit

Share via


Set-CsUserCallForwardingSettings

This cmdlet modifies the specified user's call forwarding settings. This cmdlet returns the specified user's call forwarding settings as an object, and displays the same on the screen, in case of success. In case of failure, the appropriate error message is shown.

Syntax

DisableForwarding

Set-CsUserCallForwardingSettings
    [-User] <String>
    [-DisableForwarding]
    [-SettingsActiveWorkHours]
    [-UnansweredToVoicemail]
    [-UnansweredToOther <String>]
    [-UnansweredWaitTime <Int32>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

EnableForwarding

Set-CsUserCallForwardingSettings
    [-User] <String>
    -EnableForwarding <String>
    [-SettingsActiveWorkHours]
    [-DelegateRingWaitTime <Int32>]
    [-Delegates <System.Management.Automation.PSListModifier`1[System.String]>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

EnableSimulRing

Set-CsUserCallForwardingSettings
    [-User] <String>
    -EnableSimulRing <String>
    [-SettingsActiveWorkHours]
    [-UnansweredToVoicemail]
    [-UnansweredToOther <String>]
    [-UnansweredWaitTime <Int32>]
    [-TeamDelegateRingWaitTime <Int32>]
    [-Delegates <System.Management.Automation.PSListModifier`1[System.String]>]
    [-Team <System.Management.Automation.PSListModifier`1[System.String]>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The feature enables the use of SEFAUtil functionality in PowerShell. SEFAUtil (Secondary Extension Feature Activation) enables Skype server administrators and helpdesk agents to configure delegate-ringing, call-forwarding and Group Call Pickup settings on behalf of a Skype server user. This tool also allows administrators to query the call-routing settings that are published for a particular user.

The cmdlets introduced in this feature can only be run by members of the following groups for On-prem deployments, per the access level specified below:

  • CsAdministrator - Get and Set for all cmdlets
  • CsVoiceAdministrator - Get and Set for all cmdlets
  • CsServerAdministrator - Get and Set for all cmdlets
  • CsHelpDesk - Get for all cmdlets

Server auto-discovery needs to be enabled. There are no additional licensing requirements for use of the cmdlets.

Examples

Example 1

PS C:\> Set-CsUserCallForwardingSettings -User user@contoso.com -DisableForwarding

This example disables the user's call forwarding settings.

Example 2

PS C:\> Set-CsUserCallForwardingSettings -User user@contoso.com -EnableForwarding +4721956666

This example modifies the user's call forwarding settings, activating call forwarding to a specific phone number.

Example 3

PS C:\> Set-CsUserCallForwardingSettings -User user1@contoso.com -EnableSimulRing Team -Team user2@contoso.com,user2@contoso.com -TeamDelegateRingWaitTime 5

This example modifies the SimulRing settings, activating simultaneous ring for the users listed in the Team parameter.

Example 4

PS C:\> Set-CsUserCallForwardingSettings -User user@contoso.com -DisableForwarding -UnansweredToVoicemail -UnansweredWaitTime 30

This example sends unanswered calls to voicemail after 30 seconds.

Parameters

-Confirm

Applicable: Skype for Business Server 2019CU1

Prompts you for confirmation before running the cmdlet.

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

-DelegateRingWaitTime

Applicable: Skype for Business Server 2019CU1

Specifies the time, in seconds, to wait before ringing delegates. Acceptable inputs: 0, 5, 10, 15. The parameter DelegateWaitRingTime needs to be explicitly set to a positive value to allow call forwarding to delegates.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableForwarding
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Delegates

Applicable: Skype for Business Server 2019CU1

Specifies the list of delegates that calls will be forwarded to. This parameter can only be used with EnableForwarding and EnableSimulRing parameters.

Parameter properties

Type:

System.Management.Automation.PSListModifier`1[System.String]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableForwarding
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisableForwarding

Applicable: Skype for Business Server 2019CU1

This is a switch parameter that disables forwarding. Cannot be used with the EnableSimulRing and EnableForwarding parameters.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableForwarding
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableForwarding

Applicable: Skype for Business Server 2019CU1

Enables forwarding to the specified destination. Cannot be used with the EnableSimulRing and DisableForwarding parameters.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableForwarding
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableSimulRing

Applicable: Skype for Business Server 2019CU1

This is a switch parameter that enables forwarding to the specified destination. Cannot be used along with the DisableForwarding and EnableForwarding parameters. SimulRingDestination can be a phone number, delegates, or team call group. Acceptable input formats: "<phone number>", Team, Delegates.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableSimulRing
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SettingsActiveWorkHours

Applicable: Skype for Business Server 2019CU1

Switch parameter that specifies that settings should apply during work hours defined in Outlook. When this is not specified, settings apply all the time by default.

Parameter properties

Type:SwitchParameter
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

-Team

Applicable: Skype for Business Server 2019CU1

Specifies list of team members that calls will be forwarded to. The add and remove switches will add and remove specified users from the Team Members list. The replace parameter will set the list to the specified list, wiping out the previous list. Add and remove can be used together, but neither of them can be used along with replace. Acceptable input formats for add/remove/replace list: The inputs can be a single user address (in one of the below formats), or a comma separated list of user addresses, in the 4 standard formats that Identity parameter accepts.

Parameter properties

Type:

System.Management.Automation.PSListModifier`1[System.String]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TeamDelegateRingWaitTime

Applicable: Skype for Business Server 2019CU1

Specifies the time, in seconds, to wait before ringing team members.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UnansweredToOther

Applicable: Skype for Business Server 2019CU1

Specifies that unanswered calls will be send to other user or phone number.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableForwarding
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UnansweredToVoicemail

Applicable: Skype for Business Server 2019CU1

Specifies that unanswered calls will be send to voicemail.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableForwarding
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UnansweredWaitTime

Applicable: Skype for Business Server 2019CU1

Specifies the time, in seconds, to wait before send unanswered calls to voicemail.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableForwarding
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
EnableSimulRing
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-User

Applicable: Skype for Business Server 2019CU1

Specifies the SIP address of the user whose call forwarding settings will be modified.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:DisplayName, SipAddress, Identity

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
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.

Inputs

System.String

Outputs

System.Object