Install-AntiSpamAgents Fails in Exchange 2016

Installing AntiSpam Agents such as Recipient Filter Agent, Sender Filter Agent, Sender Id Agent, Content Filter Agent in Exchange server 2016 fails with below error

“[PS] D:\ExchangeDir\Scripts>.\install-AntispamAgents.ps1
A parameter cannot be found that matches parameter name ‘EscalationTeam’.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent],
ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Install-TransportAgent
+ PSComputerName : ServerName.local”

Antispam Agents Error2

Solution:

Open the Exchange installation directory and go to <Exchange dir.>\Scripts folder and find the Install-AntiSpamAgents.ps1 Script.

Edit the script file and remove the “-EscalationTeam “AntiSpam”” line highlighted in Red.

install-TransportAgent -Name:$name -TransportAgentFactory:$factory -AssemblyPath:$agentAssembly -TransportService $transportService -EscalationTeam “AntiSpam”; > $null

Once removed the line save it and run the script again

Antispam Agents Fixed

 

Featured

Exchange Server Error: An Incomplete installation was detected error message when uninstalling Exchange server 2013

When I tried to uninstall the old exchange server 2013 from an environment the process failed with below error.

Uninstall error

Solution:

Using the Exchange 2013 setup file open command prompt as administrator and run the following command:

Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms

After removing server roles and files Exchange server 2013 completely uninstalled from the server.