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
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈