Skip to content

Commit 271c3c0

Browse files
authored
Update syntax and examples in documentation
1 parent 9ed4512 commit 271c3c0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

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

2323
### Expiration
24-
2524
```powershell
2625
New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-ExpirationDate <DateTime>]
2726
[-Allow]
@@ -36,7 +35,6 @@ New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-Expirat
3635
```
3736

3837
### NoExpiration
39-
4038
```powershell
4139
New-TenantAllowBlockListItems -Entries <String[]> -ListType <ListType> [-NoExpiration]
4240
[-Allow]
@@ -56,37 +54,34 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
5654
## EXAMPLES
5755

5856
### Example 1
59-
6057
```powershell
6158
New-TenantAllowBlockListItems -ListType Url -Block -Entries ~contoso.com~
6259
```
6360

6461
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.
6562

6663
### Example 2
67-
6864
```powershell
6965
New-TenantAllowBlockListItems -ListType FileHash -Block -Entries "768a813668695ef2483b2bde7cf5d1b2db0423a0d3e63e498f3ab6f2eb13ea3","2c0a35409ff0873cfa28b70b8224e9aca2362241c1f0ed6f622fef8d4722fd9a" -NoExpiration
7066
```
7167

7268
This example adds a file block entry for the specified files that never expires.
7369

7470
### Example 3
75-
7671
```powershell
7772
New-TenantAllowBlockListItems -Allow -ListType Url -ListSubType AdvancedDelivery -Entries *.fabrikam.com -NoExpiration
7873
```
7974

8075
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).
8176

8277
### Example 4
83-
8478
```powershell
8579
New-TenantAllowBlockListItems -Allow -ListType Url -Entries abcd.fabrikam.com -RemoveAfter 45
8680
```
8781

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).
82+
This example adds a URL allow entry for the specified domain with expiration as 45 days after last used date. This allow entry permits URLs identified as bulk, spam, high confidence spam, and phishing (not high confidence phishing).
83+
84+
For URLs identified as malware or high-confidence phishing, you need to submit the URLs Microsoft to create allow entries. For instructions, see [Report good URLs to Microsoft](https://learn.microsoft.com/defender-office-365/submissions-admin#report-good-urls-to-microsoft).
9085

9186
## PARAMETERS
9287

0 commit comments

Comments
 (0)