Skip to content

Latest commit

 

History

History
170 lines (130 loc) · 3.69 KB

New-CsInboundBlockedNumberPattern.md

File metadata and controls

170 lines (130 loc) · 3.69 KB
external help file online version applicable title author ms.author ms.reviewer manager schema
Microsoft.Rtc.Management.Hosted.dll-help.xml
Microsoft Teams
New-CsInboundBlockedNumberPattern
jenstrier
serdars
bulenteg
2.0.0

New-CsInboundBlockedNumberPattern

SYNOPSIS

Adds a blocked number pattern to the tenant list.

SYNTAX

Identity (Default)

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

ParentAndRelativeKey

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

-Description

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

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
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
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False

-Identity

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

Type: String
Parameter Sets: Identity
Aliases:

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

-Name

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

Type: String
Parameter Sets: ParentAndRelativeKey
Aliases:

Required: True
Position: Named
Default value: None
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
Parameter Sets: (All)
Aliases:

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

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Get-CsInboundBlockedNumberPattern

Set-CsInboundBlockedNumberPattern

Remove-CsInboundBlockedNumberPattern