<serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" />
Set-MailboxJunkEmailConfiguration "<User>" -Enabled <$true | $false>
-example-
Set-MailboxJunkEmailConfiguration "John Doe" -Enabled $false
Set-MailboxJunkEmailConfiguration "<User>" -<TrustedSendersAndDomains | BlockedSendersAndDomains> @{Add="<address or domain>","<address or domain>",...}
-example-
Set-MailboxJunkEmailConfiguration "John Doe" -TrustedSendersAndDomains @{Add="example@contoso.com","anysite.com"}
Get-MailboxJunkEmailConfiguration "<User>"
-example-
Get-MailboxJunkEmailConfiguration "JohnDoe@contoso.com"
Get-MailboxJunkEmailConfiguration -Identity * | Where {$_.Enabled -eq $true}
Set-ContentFilterConfig -Enable <$true | $false>
-example-
Set-ContentFilterConfig -Enable $true
Set-ContentFilterConfig -ExternalMailEnable <$true | $false>
-example-
Set-ContentFilterConfig -ExternalMailEnable $true
Set-ContentFilterConfig -InternalMailEnable <$true | $false>
-example-
Set-ContentFilterConfig -InternalMailEnable $true
Set-ContentFilterConfig -BypassedRecipients example@contoso.com,example2@contoso.com
-or, to add without overwriting previous filter configurations-
Set-ContentFilterConfig -BypassedRecipients @{Add="example@contoso.com","example2@contoso.com"}
Set-ContentFilterConfig -BypassedSenders example@contoso.com,example2@contoso.com
-or, to add without overwriting previous filter configurations-
Set-ContentFilterConfig -BypassedSenders @{Add="example@contoso.com","example2@contoso.com"}
Set-ContentFilterConfig -BypassedSenderDomains contoso.com,contoso2.com
-or, to add without overwriting previous filter configurations-
Set-ContentFilterConfig -BypassedSenderDomains @{Add="contoso.com","contoso2.com"}
Add-ContentFilterPhrase -Influence GoodWord -Phrase "<phrase>"
-example-
Add-ContentFilterPhrase -Influence GoodWord -Phrase "Quarantine Digest"
Add-ContentFilterPhrase -Influence BadWord -Phrase "<phrase>"
-example-
Add-ContentFilterPhrase -Influence BadWord -Phrase "Send Money Now"
Remove-ContentFilterPhrase -Phrase "<phrase>"
-example-
Remove-ContentFilterPhrase -Phrase "Quarantine Digest"
Set-ContentFilterConfig -SCLDeleteEnabled <$true | $false> -SCLDeleteThreshold <# value>
-example-
Set-ContentFilterConfig -SCLDeleteEnabled $true -SCLDeleteThreshold 9
Set-ContentFilterConfig -SCLRejectEnabled <$true | $false> -SCLRejectThreshold <# value>
-example-
Set-ContentFilterConfig -SCLRejectEnabled $true -SCLRejectThreshold 8
Set-ContentFilterConfig -SCLQuarantineEnabled <$true | $false> -SCLQuarantineThreshold <# value>
-example-
Set-ContentFilterConfig -SCLQuarantineEnabled $true -SCLQuarantineThreshold 5
Set-ContentFilterConfig -RejectResponse "<Custom Text>"
-example-
Set-ContentFilterConfig -RejectResponse "Your message was rejected."
Set-ContentFilterConfig -OutlookEmailPostmarkValidationEnabled <$true | $false>
Set-SenderFilterConfig -BlockedSenders example@contoso.com,example2@contoso.com
Set-SenderFilterConfig -BlockedDomains contoso.com
Set-SenderFilterConfig -BlockedDomainsAndSubdomains contoso.com
$Configuration = Get-SenderFilterConfig
$Configuration.BlockedSenders += "example@contoso.com"
$Configuration.BlockedDomains += "contoso.com"
Set-SenderFilterConfig -BlockedSenders $Configuration.BlockedSenders -BlockedDomains $Configuration.BlockedDomains
Set-SenderFilterConfig -BlankSenderBlockingEnabled $true