Viewing the statistics of the Anti-Spam module
August 7, 2024
ID 116186
Users who have been assigned one of the following roles can view the statistics of the Anti-Spam module in Windows PowerShell:
- Administrator
- Anti-Virus Security Officer
- Anti-Virus Security Operator.
To view the statistics of the Anti-Spam module:
- Run Windows PowerShell (Run as Administrator) and connect the Kse.Powershell library.
- Run command:
Get-KSEASServerStatistics -ServerFqdn <server name> -From <interval start> -To <interval end>
where:
- <server name> is the name of the protected Microsoft Exchange server. We recommend that you specify the full address of the server in FQDN format or the IP address.
- <interval start> is the starting date of the interval for which you need to view the statistics.
- <interval end> is the ending date of the interval for which you need to view the statistics.
Windows PowerShell displays the following information details:
- TotalCheckedMessages — Total number of messages that came in for scanning over the specified period
- CleanMessages — Number of messages in which no spam or phishing links have been detected (with the Clean status)
- SpamMessages — Number of messages with the Spam status
- ProbableSpamMessages — Number of messages with the Probable spam status
- FormalMessages — Number of messages with the Formal notification status
- BlackListedMessages — Number of messages with the Address blacklisted status
- TrustedMessages — Number of messages with the Trusted status
- MassMailMessages — Number of messages with the Mass mail status
- PhishingMessages — Number of messages with the Phishing status
- NotCheckedMessages — Number of messages that have not been scanned by Anti-Spam.
Example of a command that displays the statistics of Anti-Spam on server.domain.com over last hour:
Get-KSEASServerStatistics -ServerFqdn server.domain.com -From $(Get-Date).AddHours(-1) -To $(Get-Date)
If the Kaspersky Security for Microsoft Exchange Servers (KSCM8) service is not yet running, the Get-KSEASServerStatistics command returns System.ServiceModel.EndpointNotFoundException.