CmdID / PowerShell / Cmdlets / New
New-SafeAttachmentPolicy
Use the New-SafeAttachmentPolicy cmdlet to create safe attachment policies in your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 11 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the safe attachment policy.-ActionThe Action parameter specifies the action for the safe attachment policy.-AdminDisplayNameThe AdminDisplayName parameter specifies a description for the policy.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-EnableThe Enable parameter works with the Action parameter to specify the action for the safe attachment policy.-MakeBuiltInProtectionThe MakeBuiltInProtection switch is used for Built-in protection policy creation as part of Preset security policies.-QuarantineTagThe QuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as malware by Safe Attachments.-RecommendedPolicyTypeThe RecommendedPolicyType parameter is used for Standard and Strict policy creation as part of Preset security policies.-RedirectThe Redirect parameter specifies whether to deliver messages to an alternate email address if malware is detected in an attachment.-RedirectAddressThe RedirectAddress parameter specifies the destination email address to deliver messages if malware is detected in an attachment.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.