CmdID / PowerShell / Cmdlets / New
New-EOPProtectionPolicyRule
Use the New-EOPProtectionPolicyRule cmdlet to create rules for the built-in security features for all cloud mailboxes in preset security policies. Exchange PowerShell reference
From the Exchange PowerShell reference 15 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the rule.-AntiPhishPolicyThe AntiPhishPolicy parameter specifies the existing anti-phishing policy that's associated with the preset security policy.-HostedContentFilterPolicyThe HostedContentFilterPolicy parameter specifies the existing anti-spam policy that's associated with the preset security policy.-MalwareFilterPolicyThe HostedContentFilterPolicy parameter specifies the existing anti-malware 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.