CmdID / PowerShell / Cmdlets / New
New-HostedContentFilterPolicy
Use the New-HostedContentFilterPolicy cmdlet to create spam filter policies (content filter policies) in your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 59 parameters Its page in the reference
Parameters
Show its 59 parameters
-NameThe Name parameter specifies a unique name for the spam filter policy.-AddXHeaderValueThe AddXHeaderValue parameter specifies the X-header name (not value) to add to spam messages when a spam filtering verdict parameter is set to the value AddXHeader.-AdminDisplayNameThe AdminDisplayName parameter specifies a description for the policy.-AllowedSenderDomainsThe AllowedSenderDomains parameter specifies trusted domains that bypass spam filtering.-AllowedSendersThe AllowedSenders parameter specifies a list of trusted senders that bypass spam filtering.-BlockedSenderDomainsThe BlockedSenderDomains parameter specifies domains that are always marked as spam sources.-BlockedSendersThe BlockedSenders parameter specifies senders that are always marked as spam sources.-BulkMovesEnabledThe BulkMovesEnabled parameter specifies whether to tag all bulk mail as Bulk in supported email clients, and whether bulk mail below the BulkThreshold parameter is delivered to the Promotions folder…-BulkQuarantineTagThe BulkQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as bulk email (the BulkSpamAction parameter value is Quarantine).-BulkSpamActionThe BulkSpamAction parameter specifies the action to take on messages that are marked as bulk email (also known as gray mail) based on the bulk complaint level (BCL) of the message, and the BCL thres…-BulkThresholdThe BulkThreshold parameter specifies the BCL on messages that triggers the action specified by the BulkSpamAction parameter (greater than or equal to the specified BCL value).-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DownloadLinkThis parameter is deprecated and no longer used.-EnableEndUserSpamNotificationsThis parameter is deprecated and no longer used.-EnableLanguageBlockListThe EnableLanguageBlockList parameter enables or disables marking messages that were written in specific languages as spam.-EnableRegionBlockListThe EnableRegionBlockList parameter enables or disables marking messages that are sent from specific countries or regions as spam.-EndUserSpamNotificationCustomFromAddressThis parameter is deprecated and no longer used.-EndUserSpamNotificationCustomFromNameThis parameter is deprecated and no longer used.-EndUserSpamNotificationCustomSubjectThis parameter is deprecated and no longer used.-EndUserSpamNotificationFrequencyThis parameter is deprecated and no longer used.-EndUserSpamNotificationLanguageThis parameter is deprecated and no longer used.-EndUserSpamNotificationLimitThis parameter is reserved for internal Microsoft use.-HighConfidencePhishActionThe HighConfidencePhishAction parameter specifies the action to take on messages that are marked as high confidence phishing (not phishing).-HighConfidencePhishQuarantineTagThe HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as high confidence phishing (the HighConfidencePhishAction parameter value…-HighConfidenceSpamActionThe HighConfidenceSpamAction parameter specifies the action to take on messages that are marked as high confidence spam (not spam, bulk email, phishing, or high confidence phishing).-HighConfidenceSpamQuarantineTagThe HighConfidenceSpamQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as high confidence spam (the HighConfidenceSpamAction parameter value is Qua…-IncreaseScoreWithBizOrInfoUrlsThe IncreaseScoreWithBizOrInfoUrls parameter increases the spam score of messages that contain links to .biz or .info domains.-IncreaseScoreWithImageLinksThe IncreaseScoreWithImageLinks parameter increases the spam score of messages that contain image links to remote websites.-IncreaseScoreWithNumericIpsThe IncreaseScoreWithNumericIps parameter increases the spam score of messages that contain links to IP addresses.-IncreaseScoreWithRedirectToOtherPortThe IncreaseScoreWithRedirectToOtherPort parameter increases the spam score of messages that contain links that redirect to TCP ports other than 80 (HTTP), 8080 (alternate HTTP), or 443 (HTTPS).-InlineSafetyTipsEnabledThe InlineSafetyTipsEnabled parameter specifies whether to enable or disable safety tips that are shown to recipients in messages.-IntraOrgFilterStateThe IntraOrgFilterState parameter specifies whether to enable anti-spam filtering for messages sent between internal users (users in the same organization).-LanguageBlockListThe LanguageBlockList parameter specifies the email content languages that are marked as spam when the EnableLanguageBlockList parameter value is $true.-MarkAsSpamBulkMailThe MarkAsSpamBulkMail parameter allows spam filtering to act on bulk email messages.-MarkAsSpamEmbedTagsInHtmlThe MarkAsSpamEmbedTagsInHtml parameter marks a message as spam when the message contains HTML \ tags.-MarkAsSpamEmptyMessagesThe MarkAsSpamEmptyMessages parameter marks a message as spam when the message contains no subject, no content in the message body, and no attachments.-MarkAsSpamFormTagsInHtmlThe MarkAsSpamFormTagsInHtml parameter marks a message as spam when the message contains HTML \ tags.-MarkAsSpamFramesInHtmlThe MarkAsSpamFramesInHtml parameter marks a message as spam when the message contains HTML \ or \ tags.-MarkAsSpamFromAddressAuthFailThe MarkAsSpamFromAddressAuthFail parameter marks a message as spam when Sender ID filtering encounters a hard fail.-MarkAsSpamJavaScriptInHtmlThe MarkAsSpamJavaScriptInHtml parameter marks a message as spam when the message contains JavaScript or VBScript.-MarkAsSpamNdrBackscatterThe MarkAsSpamNdrBackscatter parameter marks a message as spam when the message is a non-delivery report (also known as an NDR or bounce messages) sent to a forged sender (known as *backscatter*).-MarkAsSpamObjectTagsInHtmlThe MarkAsSpamObjectTagsInHtml parameter marks a message as spam when the message contains HTML \ tags.-MarkAsSpamSensitiveWordListThe MarkAsSpamSensitiveWordList parameter marks a message as spam when the message contains words from the sensitive words list.-MarkAsSpamSpfRecordHardFailThe MarkAsSpamSpfRecordHardFail parameter marks a message as spam when SPF record checking encounters a hard fail.-MarkAsSpamWebBugsInHtmlThe MarkAsSpamWebBugsInHtml parameter marks a message as spam when the message contains web bugs (also known as web beacons).-ModifySubjectValueThe ModifySubjectValue parameter specifies the text to prepend to the existing subject of messages when a spam filtering verdict parameter is set to the value ModifySubject.-PhishQuarantineTagThe PhishQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as phishing (the PhishSpamAction parameter value is Quarantine).-PhishSpamActionThe PhishSpamAction parameter specifies the action to take on messages that are marked as phishing (not high confidence phishing).-PhishZapEnabledThe PhishZapEnabled parameter enables or disables zero-hour auto purge (ZAP) to detect phishing in already delivered messages in Exchange Online mailboxes.-QuarantineRetentionPeriodThe QuarantineRetentionPeriod parameter specifies the number of days that spam messages remain in quarantine when a spam filtering verdict parameter is set to the value Quarantine.-RecommendedPolicyTypeThe RecommendedPolicyType parameter is used for Standard and Strict policy creation as part of Preset security policies.-RedirectToRecipientsThe RedirectToRecipients parameter specifies the email addresses of replacement recipients when a spam filtering verdict parameter is set to the value Redirect.-RegionBlockListThe RegionBlockList parameter specifies the source countries or regions that are marked as spam when the EnableRegionBlockList parameter value is $true.-SpamActionThe SpamAction parameter specifies the action to take on messages that are marked as spam (not high confidence spam, bulk email, phishing, or high confidence phishing).-SpamQuarantineTagThe SpamQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as spam (the SpamAction parameter value is Quarantine).-SpamZapEnabledThe SpamZapEnabled parameter enables or disables zero-hour auto purge (ZAP) to detect spam in already delivered messages in Exchange Online mailboxes.-TestModeActionThe TestModeAction parameter specifies the additional action to take on messages when one or more IncreaseScoreWith* or MarkAsSpam* ASF parameters are set to the value Test.-TestModeBccToRecipientsThe TestModeBccToRecipients parameter specifies the blind carbon copy (Bcc) recipients to add to spam messages when the TestModeAction ASF parameter is set to the value BccMessage.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.