How it works...

All of the anti-spam agents use a series of log files on each Mailbox server with the anti-spam agents installed. By default, Mailbox servers do not have the anti-spam agents installed, but you can install them manually using the following commands:

    cd $exscripts
    .\Install-AntiSpamAgents.ps1
    Restart-Service MSExchangeTransport  

After performing the preceding commands, the agents will be installed, and the Transport service needs to be restarted.

By default, the agent log file directory is set to a maximum size of 250 MB. Each individual log file is limited to 10 MB in size and will be kept for a maximum of 7 days, or until the directory reaches its maximum size. These values can be adjusted using the Set-TransportService ...

Get Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.