Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Enables or disables Forefront antispam filtering.

Syntax

Set-FseSpamFiltering -Enabled <Boolean> [<CommonParameters>]

Detailed Description

Enables or disables Forefront antispam. This cmdlet can be used to enable antispam filtering for the first time or to switch between enabling and disabling the antispam agents. These are the agents enabled: Forefront agents: Connection Filter Shim and Forefront Content Filter Exchange agents: Sender Filter, Recipient Filter, Sender ID Filter, and Connection Filter NOTE: If you add another edge server to your existing system configuration, and you have opted into or enabled antispam on the existing edges, then you must either opt into antispam on the new edge or enable antispam post-installation using this Windows PowerShell command.

Parameters

-Enabled [<Boolean>]

Indicates whether antispam filtering is enabled. Required. The possible values are $false (antispam filtering is not enabled) and $true (antispam filtering is enabled). The default value is determined during the installation of Microsoft Forefront Protection 2010 for Exchange Server when you decide whether or not to opt into spam filtering.

NOTE: The Microsoft Exchange Transport service must be stopped and then started again for changes to this setting to take effect. Do not use the Restart function.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

EXAMPLE 1

PS> Set-FseSpamFiltering -Enabled $true There is no output if the command completes successfully.

Description

-----------

The following required agents are enabled: Connection Filter Shim, Content Filter, Sender Filter, Recipient Filter, Connection Filter, SenderID Filter. This assumes that you have installed antispam.

EXAMPLE 2

PS> Set-FseSpamFiltering -Enabled $true Error: Please run the ASInstall script to install antispam before attempting this operation.

Description

-----------

An error message informs you that antispam is not installed.

EXAMPLE 3

PS> Set-FseSpamFiltering -Enabled $false There is no output if the command completes successfully.

Description

-----------

The antispam agents are disabled.