Modifier

Partager via


Set-CsInboundBlockedNumberPattern

Modifies one or more parameters of a blocked number pattern in the tenant list.

Syntax

Set-CsInboundBlockedNumberPattern
   [[-Identity] <string>]
   [-Description <string>]
   [-Enabled <boolean>]
   [-Pattern <string>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

This cmdlet modifies one or more parameters of a blocked number pattern in the tenant list.

Examples

Example 1

PS> Set-CsInboundBlockedNumberPattern -Identity "BlockAutomatic" -Pattern "^\+11234567890"

This example modifies a blocked number pattern to block inbound calls from +11234567890 number.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

A friendly description for the blocked number pattern to be modified.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

If this parameter is set to True, the inbound calls matching the pattern will be blocked.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

A unique identifier specifying the blocked number pattern to be modified.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Pattern

A regular expression that the calling number must match in order to be blocked.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False