SafeAttachmentPolicy
S’applique à : Exchange Online
This cmdlet is available only in the cloud-based service.
Use the Set-SafeAttachmentPolicy cmdlet to modify safe attachment policies in your cloud-based organization.
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.
Safe Attachments is a feature in Microsoft Defender for Office 365 that opens email attachments in a special hypervisor environment to detect malicious activity. For more information, see Safe Attachments in Defender for Office 365.
A safe attachment policy can be assigned to only one safe attachment rule by using the SafeAttachmentPolicy parameter on the New-SafeAttachmentRule or Set-SafeAttachmentRule cmdlets.
You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.
Cmdlets disponibles
Paramètres
| Nom | Type | Valeur par défaut | Valeurs acceptées |
|---|---|---|---|
| Action | SafeAttachmentAction | ||
| AdminDisplayName | String | ||
| Enable | Boolean | ||
| QuarantineTag | String | ||
| Redirect | Boolean | ||
| RedirectAddress | SmtpAddress |
Exemples
Example 1
Set-SafeAttachmentsPolicy -Identity "Engineering Block Attachments" -QuarantineTag ContosoLimitedAccess This example modifies the existing safe attachment policy named Engineering Block Attachments to set the quarantine policy to ContosoLimitedAccess.