To enable anti-spam functionality on a Hub Transport server

  1. Run the following command:

Copy Code

./install-AntispamAgents.ps1
  1. After the script has run, restart the Microsoft Exchange Transport service by running the following command:

Copy Code

Restart-Service MSExchangeTransport
  1. Run the following command:

    ./install-AntispamAgents.ps1
    
  2. After the script has run, restart the Microsoft Exchange Transport service by running the following command:

    Restart-Service MSExchangeTransport