CmdID / PowerShell / Cmdlets / New
New-ATPBuiltInProtectionRule
Use the New-ATPBuiltInProtectionRule cmdlet to create the rule for the Built-in protection preset security policy that effectively provides default policies for Safe Links and Safe Attachments in Microsoft Defender for… Exchange PowerShell reference
From the Exchange PowerShell reference 9 parameters Its page in the reference
Parameters
-SafeAttachmentPolicyThe SafeAttachmentPolicy parameter specifies the Safe Attachments policy that's associated with the Built-in preset security policy.-SafeLinksPolicyThe SafeLinksPolicy parameter specifies the Safe Links policy that's associated with the Built-in preset security policy.-CommentsThe Comments parameter specifies informative comments for the rule, such as what the rule is used for or how it has changed over time.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-ExceptIfRecipientDomainIsThe ExceptIfRecipientDomainIs parameter specifies an exception that looks for recipients with email addresses in the specified domains.-ExceptIfSentToThe ExceptIfSentTo parameter specifies an exception that looks for recipients in messages.-ExceptIfSentToMemberOfThe ExceptIfSentToMemberOf parameter specifies an exception that looks for messages sent to members of groups.-NameThe Name parameter specifies a unique name for the rule.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.