Modifier

Partager via


New-CsInboundBlockedNumberPattern

Adds a blocked number pattern to the tenant list.

Syntax

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

Description

This cmdlet adds a blocked number pattern to the tenant list. An inbound PSTN call from a number that matches the blocked number pattern will be blocked.

Examples

Example 1

PS> New-CsInboundBlockedNumberPattern -Description "Avoid Unwanted Automatic Call" -Name "BlockAutomatic" -Pattern "^\+11234567890"

This example adds 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 created.

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:True
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

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

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

-Name

A displayable name describing the blocked number pattern to be created.

Type:String
Position:Named
Default value:None
Required:True
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:True
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

Inputs

None

Outputs

System.Object