CmdID / PowerShell / Cmdlets / New
New-ATPProtectionPolicyRule
Use the New-ATPProtectionPolicyRule cmdlet to create rules for Microsoft Defender for Office 365 protections in preset security policies. Exchange PowerShell reference
From the Exchange PowerShell reference 14 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the rule.-SafeAttachmentPolicyThe SafeAttachmentPolicy parameter specifies the existing Safe Attachments policy that's associated with the preset security policy.-SafeLinksPolicyThe SafeLinksPolicy parameter specifies the existing Safe Links policy that's associated with the 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.-EnabledThe Enabled parameter specifies whether the rule is enabled.-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.-PriorityThe Priority parameter specifies a priority value for the rule that determines the order of rule processing.-RecipientDomainIsThe RecipientDomainIs parameter specifies a condition that looks for recipients with email addresses in the specified domains.-SentToThe SentTo parameter specifies a condition that looks for recipients in messages.-SentToMemberOfThe SentToMemberOf parameter specifies a condition that looks for messages sent to members of distribution groups, dynamic distribution groups, or mail-enabled security groups.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.