CmdID / PowerShell / Cmdlets / New
New-MalwareFilterRule
Use the New-MalwareFilterRule cmdlet to create malware filter rules in your organization. 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 malware filter rule.-MalwareFilterPolicyThe MalwareFilterPolicy parameter specifies the malware filter policy that's associated with the malware filter rule.-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.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-EnabledThe Enabled parameter enables or disables the malware filter rule.-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 distribution groups, mail-enabled security groups, or sent to Microsoft 365 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, mail-enabled security groups, or sent to Microsoft 365 Groups.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.