Edit

Set-CsMainlineAttendantSpamDetectionTemplate

Modifies an existing Spam Detection template.

Syntax

Default (Default)

Set-CsMainlineAttendantSpamDetectionTemplate
    -Instance <Object>
    [<CommonParameters>]

Description

Use the Set-CsMainlineAttendantSpamDetectionTemplate cmdlet to change a Spam Detection template.

Examples

Example 1

$SpamDetection = Get-CsMainlineAttendantSpamDetectionTemplate -Id 66f0dc32-d344-4bb1-b524-027d4635515d
$SpamDetection.Action = "TransferCallToOperator"
Set-CsMainlineAttendantSpamDetectionTemplate -Instance $SpamDetection

This example sets the Action value in the Spam Detection Template with the Id 66f0dc32-d344-4bb1-b524-027d4635515d

Parameters

-Instance

The Instance parameter is the object reference to the Spam Detection template to be modified.

You can retrieve an object reference to an existing template by using the Get-CsMainlineAttendantSpamDetectionTemplate cmdlet and assigning the returned value to a variable.

Parameter properties

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

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

None

Outputs

Microsoft.Rtc.Management.OAA.Models.AutoAttendant