Home > Exchange, Microsoft, Powershell, Windows Server > How to Enable Anti-Spam Functionality on a Hub Transport Server

How to Enable Anti-Spam Functionality on a Hub Transport Server

Let’s say your company is small or midsize business and you don’t have enough resources to set up the secondary Exchange 2007 server with Edge Transport role. There is a way how to enable anti-spam options on a server that has Hub Transport role installed. To do this, first you need to check that your account has proper permissions. Now if you got the permissions, here’s the script you need to run Install-AntispamAgents.ps1. This script is located here:
%system drive%/Program Files\Microsoft\Exchange Server\Scripts, and you must run it from that folder. To run this script use the following command:


After the script has run restart the MS Exchange Transport service. You can do it with this command:

Restart-Service MSExchangeTransport

One more thing, All the commands mentioned above are meant to be run in Exchange Management Shell. So if you got MS Exchange 2007 installed on Windows Server 2008 and both Windows Powershell and Exchange Management Shell then use the last one to run these commands.

If you want to read more about it then here’s the link from technet.


  1. September 18, 2014 at 3:42 am

    It’s hard to find well-informed people for this subject, but you seem like you know what you’re talking about!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: