CmdID / PowerShell / Cmdlets / Set
Set-HostedOutboundSpamFilterRule
Use the Set-HostedOutboundSpamFilterRule cmdlet to modify the settings of outbound spam filter rules in your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 13 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the outbound 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.-ExceptIfFromThe ExceptIfFrom parameter specifies an exception that looks for messages from specific senders.-ExceptIfFromMemberOfThe ExceptIfFromMemberOf parameter specifies an exception that looks for messages sent by group members.-ExceptIfSenderDomainIsThe ExceptIfSenderDomainIs parameter specifies an exception that looks for senders with email address in the specified domains.-FromThe From parameter specifies a condition that looks for messages from specific senders.-FromMemberOfThe FromMemberOf parameter specifies a condition that looks for messages sent by group members.-HostedOutboundSpamFilterPolicyThe HostedOutboundSpamFilterPolicy parameter specifies the outbound spam filter policy that's associated with the outbound spam filter rule.-NameThe Name parameter specifies a unique name for the outbound spam filter rule.-PriorityThe Priority parameter specifies a priority value for the rule that determines the order of rule processing.-SenderDomainIsThe SenderDomainIs parameter specifies a condition that looks for senders with email address in the specified domains.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.