Skip to content

Commit bb64d38

Browse files
committed
Update New-SafeAttachmentPolicy.md
More updates related to #8045
1 parent 3d14718 commit bb64d38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exchange/exchange-ps/exchange/New-SafeAttachmentPolicy.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
4949

5050
### Example 1
5151
```powershell
52-
New-SafeAttachmentPolicy -Name "Marketing Block Attachments" -Redirect $true -RedirectAddress [email protected]
52+
New-SafeAttachmentPolicy -Name "Marketing Block Attachments" -Enable $true -Redirect $true -RedirectAddress [email protected]
5353
```
5454

5555
This example creates a new safe attachment policy named Marketing Block Attachments with the following options:
5656

5757
- The action is Block. This is the default value of the Action parameter, so you don't need to specify it.
58+
- The value $true for the Enable parameter is required so the policy will actually use the default Action parameter value of Block (or any other Action parameter value).
5859
- Enable redirection for detected malware attachments and send the messages to [email protected].
5960
- If Safe Attachments scanning isn't available or encounters errors, don't deliver the message as normal. The default value of the ActionOnError parameter is $true, so you don't need to specify it.
6061

@@ -86,7 +87,7 @@ The Action parameter specifies the action for the safe attachment policy. Valid
8687
8788
The value of this parameter is meaningful only if the value of the Enable parameter is also $true (the default value is $false).
8889
89-
To specify no action for the safe attachment policy (corresponds to **Off** for the **Safe Attachments unknown malware response** property of the policy in the admin center), use the Enable parameter with the value $false.
90+
To specify no action for the safe attachment policy (corresponds to **Off** for the **Safe Attachments unknown malware response** property of the policy in the admin center), don't use the Enable parameter (the default value is $false).
9091
9192
The results of all actions are available in message trace.
9293

0 commit comments

Comments
 (0)