Thursday, November 22, 2012

Exchange 2010 PowerShell Enable/Disable Content Filtering & manage

Set-ContentFilterConfig -Enabled $false
Set-ContentFilterConfig -Enabled $true
Set-ContentFilterConfig -ExternalMailEnabled $false
Set-ContentFilterConfig -InternalMailEnabled $true
Add-ContentFilterPhrase -Phrase "bicycle" -Influence GoodWord
Add-ContentFilterPhrase -Phrase "earn extra cash" -Influence BadWord
Set-ContentFilterConfig -BypassedRecipients username@network-lab.net
Set-ContentFilterConfig -BypassedSenders username1@network-lab.net, username2@network-lab.net
Set-ContentFilterConfig -BypassedSenderDomains network-lab.net
Set-ContentFilterConfig -BypassedSenderDomains *.network-lab.net, otherdomain.tld
Set-ContentFilterConfig -SCLDeleteEnabled $true -SCLDeleteThreshold 9
Set-ContentFilterConfig -SCLRejectEnabled $true -SCLRejectThreshold 8
Set-ContentFilterConfig -SCLQuarantineEnabled $true -SCLQuarantineThreshold 7
Set-ContentFilterConfig -RejectionResponse "Your message has been rejected because it was judged to be spam.",
Set-ContentFilterConfig -QuarantineMailbox spamquarantine@network-lab.net
Set-ContentFilterConfig –SCLQuarantineEnabled $true –SCLQuarantineThreshold 5 –QuarantineMailbox spamquarantine@network-lab.net

No comments :

Post a Comment