CmdID

CmdID / PowerShell / Cmdlets / Set

Set-HostedContentFilterRule

Use the Set-HostedContentFilterRule cmdlet to modify spam filter rules (content filter rules) in your cloud-based organization. Exchange PowerShell reference

From the Exchange PowerShell reference 13 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

13 in the Exchange PowerShell reference
-IdentityThe Identity parameter specifies the spam filter rule that you want to modify.
-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 for the rule that looks for recipients with email addresses in the specified domains.
-ExceptIfSentToThe ExceptIfSentTo parameter specifies an exception for the rule that looks for recipients in messages.
-ExceptIfSentToMemberOfThe ExceptIfSentToMemberOf parameter specifies an exception for the rule that looks for messages sent to members of distribution groups, mail-enabled security groups, or sent to Microsoft 365 Groups.
-HostedContentFilterPolicyThe HostedContentFilterPolicy parameter specifies the spam filter policy (content filter policy) that's associated with the rule.
-NameThe Name parameter specifies a unique name for the spam filter rule.
-PriorityThe Priority parameter specifies a priority value for the rule that determines the order of rule processing.
-RecipientDomainIsThe RecipientDomainIs parameter specifies a condition for the rule that looks for recipients with email addresses in the specified domains.
-SentToThe SentTo parameter specifies a condition for the rule 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.