en-US

Enable

Parameter of SafeAttachmentPolicy

Applies to : Exchange Online

Description

The Enable parameter works with the Action parameter to specify the action for the safe attachment policy. Valid values are:

  • $true: The Action parameter specifies the action for the safe attachment policy.
  • $false: This value is the default. Attachments are not scanned by Safe Attachments, regardless of the value of the Action parameter. $false corresponds to the value Off for the Safe Attachments unknown malware response setting of the complete Safe Attachments policy in the Microsoft Defender portal (the combination of the rule and the corresponding associated policy in PowerShell).

To enable or disable an existing Safe Attachments policy, use the Enable-SafeAttachmentRule or Disable-SafeAttachmentRule cmdlets.

Microsoft Learn documentation

Characteristics

Type
Boolean
Parameter sets
(All)

Apply

Enter the name of the policy to change.