New-CsInboundExemptNumberPattern
This cmdlet lets you configure a new number pattern that is exempt from tenant call blocking.
Syntax
New-CsInboundExemptNumberPattern
-Identity <String>
-Pattern <String>
[-Description <String>]
[-Enabled <Boolean>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-CsInboundExemptNumberPattern
-Pattern <string>
-Name <string>
[-Description <string>]
[-Enabled <boolean>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Examples
EXAMPLE 1
PS> New-CsInboundExemptNumberPattern -Identity "AllowContoso1" -Pattern "^\+?1312555888[2|3]$" -Description "Allow Contoso helpdesk" -Enabled $True
Creates a new inbound exempt number pattern for the numbers 1 (312) 555-88882 and 1 (312) 555-88883 and enables it
Parameters
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Sets the description of the number pattern.
| Type: | System.String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
This parameter determines whether the number pattern is enabled for exemption or not.
| Type: | Boolean |
| Position: | Named |
| Default value: | True |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Unique identifier for the exempt number pattern to be created.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
A displayable name describing the exempt number pattern to be created.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
A regular expression that the calling number must match in order to be exempt from blocking. It is best pratice to start the regular expression with the hat character and end it with the dollar character. You can use various regular expression test sites on the Internet to validate the expression.
| Type: | System.String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Notes
You can use Test-CsInboundBlockedNumberPattern to test your block and exempt phone number ranges.
Related Links
フィードバック
フィードバックの送信と表示