Skip to content

Commit 9ed4512

Browse files
committed
Updated for creating allow directly from TABL
Can add sender and URL allow from TABL
1 parent 4f35b40 commit 9ed4512

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

exchange/exchange-ps/exchange/New-TenantAllowBlockListItems.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ For information about the parameter sets in the Syntax section below, see [Excha
2121
## SYNTAX
2222

2323
### Expiration
24-
```
24+
25+
```powershell
2526
New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-ExpirationDate <DateTime>]
2627
[-Allow]
2728
[-Block]
@@ -35,7 +36,8 @@ New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-Expirat
3536
```
3637

3738
### NoExpiration
38-
```
39+
40+
```powershell
3941
New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-NoExpiration]
4042
[-Allow]
4143
[-Block]
@@ -54,26 +56,38 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
5456
## EXAMPLES
5557

5658
### Example 1
59+
5760
```powershell
5861
New-TenantAllowBlockListItems -ListType Url -Block -Entries ~contoso.com~
5962
```
6063

6164
This example adds a URL block entry for contoso.com and all subdomains (for example, contoso.com, www.contoso.com, xyz.abc.contoso.com, and www.contoso.com/b). Because we didn't use the ExpirationDate or NoExpiration parameters, the entry expires after 30 days.
6265

6366
### Example 2
67+
6468
```powershell
6569
New-TenantAllowBlockListItems -ListType FileHash -Block -Entries "768a813668695ef2483b2bde7cf5d1b2db0423a0d3e63e498f3ab6f2eb13ea3","2c0a35409ff0873cfa28b70b8224e9aca2362241c1f0ed6f622fef8d4722fd9a" -NoExpiration
6670
```
6771

6872
This example adds a file block entry for the specified files that never expires.
6973

7074
### Example 3
75+
7176
```powershell
7277
New-TenantAllowBlockListItems -Allow -ListType Url -ListSubType AdvancedDelivery -Entries *.fabrikam.com -NoExpiration
7378
```
7479

7580
This example adds a URL allow entry for the specified third-party phishing simulation URL with no expiration. For more information, see [Configure the advanced delivery policy for third-party phishing simulations and email delivery to SecOps mailboxes](https://learn.microsoft.com/defender-office-365/advanced-delivery-policy-configure).
7681

82+
### Example 4
83+
84+
```powershell
85+
New-TenantAllowBlockListItems -Allow -ListType Url -Entries abcd.fabrikam.com -RemoveAfter 45
86+
```
87+
88+
This example adds a URL allow entry for the specified domain with expiration as 45 days after last used date. This allow will permit URLs identified as bulk, spam and regular phish.
89+
For URLs identified as malware or high-confidence phishing, you will need to submit the URL to create allows. [Learn more about submitting good URLs to Microsoft](submissions-admin.md#report-good-urls-to-microsoft).
90+
7791
## PARAMETERS
7892

7993
### -Entries
@@ -281,6 +295,8 @@ The RemoveAfter parameter enables the **Remove on** \> **45 days after last used
281295

282296
The only valid value for this parameter is 45.
283297

298+
It can be used with the Allow switch where the ListType parameter value is Sender or FileHash or Url.
299+
284300
You can't use this parameter with the ExpirationDate or NoExpirationDate parameters.
285301

286302
```yaml

0 commit comments

Comments
 (0)