Use Get-Help .\AnalyzeRobocopyLogs.ps1 -full to get this help information:

SYNOPSIS
Analyze Robocopy logs and mail the result in a summary file

DESCRIPTION
This Powershell script will analyze a directory (can be recursive) that contains Robocopy log files.
It will generate one output file with a summary for each log file, in the same folder as the script.
All logs that contain errors will be placed in top of this summary. All error information is included.
Once the summary is created an e-mail is sent to the specified e-mail address(es), with the summary file attached.

PARAMETER Path
This option is mandatory. Specifies the path to the Robocopy log files.

SWITCH Recurse
Set this switch to include subfolders.

PARAMETER MailSender
Specifies the from e-mail address. The default value is Norepl@Noreply.com

PARAMETER MailRecipient
This option is mandatory. Specifies the recipient of the e-mail message.
If multiple recipients need to be specified, use a semicolon ( ; ) as a seperator.

PARAMETER MailServer
This option is mandatory. Specifies the name of the SMTP server.

PARAMETER MailSubject
Specifies the non-dynamic text part of the subject name for the e-mail message. The default text is "Analyze Robocopy Backup Logs"

PARAMETER MailPort
Specifies the port to use for the e-mail message. The default value is 25. This option is ignored with Powershell v2.0

SWITCH UseSsl
Set this switch to use SSL for e-mail communication.

PARAMETER Summary
Use one of the following parameters:
SummaryAll = creates a summary file of all Robocopy logs, includes detailed warning and error information
in the report
SummaryAllWithoutWarnings = creates a summary file of all Robocopy logs, includes detailed error information
in the report
ErrorsAndWarnings = creates a summary file of all Robocopy logs that contain errors and warnings,
includes detailed warning and errorinformation. If no warnings and/or errors are found, the summary
will only contain the start time and end time of the script.
ErrorsOnly = creates a summary file of all Robocopy logs that contain errors, includes detailed
error information in the report. If no errors are found, the summary will only contain the start time
and end time of the script.
(When AnalyzeRobocopyLogs encounters a 'same' file in a Robocopy log file, It will mark this as a warning)
The default option is SummaryAll

PARAMETER MailPolicy
Use one of the following parameters:
Always = Always send an e-mail report with the summary file attached
ErrorsAndWarnings = Only send an e-mail report if the summary file contains Errors and/or Warnings
ErrorsOnly = Only send an e-mail report if the summary file contains Errors
(When AnalyzeRobocopyLogs encounters a 'same' file in a Robocopy log file, It will mark this as a warning)
The default option is Always

PARAMETER MaxAmountOfSummaryLines
Use this parameter to set the maximum amount of detailed summary lines to include in the summary repory. The default value is 500.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com;Suzie@q.com" -MailServer mail.server.com
This will analyze the "C:\Windows\Logs" folder for all Robocopy backup logs and sends the result by e-mail to
to John@doe.com and Suzie@q.com by e-mail.
It will use the default summary, mail policy, subject and mail port options.
In this example, it will NOT use SSL or recurively check the path for logs.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -Recurse -MailRecipient "John@doe.com" -MailServer mail.server.com
This will analyze the "C:\Windows\Logs" folder and subfolders for all Robocopy backup logs and sends the result
by e-mail to John@doe.com.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -Recurse -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary SummaryAll -MailPolicy ErrorsOnly
This will analyze the "C:\Windows\Logs" folder (and subfolders) and check for all Errors and Warnings
and creates a summary file of EACH log file, including a more detailed information for each error and/or
warning, and will mail if Errors are found.
(so warnings are ignored when checking if the summary has to be mailed)

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary SummaryAllWithoutWarnings -MailPolicy Always
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a summary file of
each log file and ignores warnings. It will always send a mail report.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary SummaryAllWithoutWarnings -MailPolicy ErrorsAndWarnings
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a summary file of
each log file and ignores warnings. It will send a mail report only if Errors are found.
(if you disable warnings in -summary the ErrorsAndWarnings mailpolicy will automatically change its
behavior to ErrorsOnly)

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary SummaryAllWithoutWarnings -MailPolicy ErrorsOnly
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a summary file of
each log file and ignores warnings. It will send a mail report only if Errors are found.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary ErrorsAndWarnings -MailPolicy ErrorsOnly
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a detailed summary
file of each log file that contains Errors and/or Warnings (skips the non-error and/or non-warning files).
It will send a mail report only if Errors are found.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary ErrorsOnly -MailPolicy Always
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a detailed summary
file of each log file that contains Errors (skips the non-error files).
It will always send a mail report.

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -MailRecipient "John@doe.com" -MailServer mail.server.com -Summary ErrorsOnly -MailPolicy ErrorsAndWarnings
This will analyze the "C:\Windows\Logs" folder and check for all Errors and creates a detailed summary
file of each log file that contains Errors (skips the non-error files).
It will send a mail report only if Errors are found.
(if you disable warnings in -summary the ErrorsAndWarnings mailpolicy will automatically change its behavior to ErrorsOnly)

EXAMPLE
C:\PS> .\AnalyzeRobocopyLogs.ps1 -Path "C:\Windows\Logs" -Recurse -Mailsender "NoReply@mydomain.com" -MailRecipient "John@doe.com" -MailServer "mail.server.com" -MailSubject "PowershellAdministrator - Removing the human error step by step" -MailPort 465 -UseSsl -Summary ErrorsOnly -MailPolicy ErrorsOnly -MaxAmountOfSummaryLines 1000
This will recursively analyze the "C:\Windows\Logs" folder and check for all Errors and creates a detailed
summary file of each log file that contains Errors (skips the non-error files) and will use a maximum of
1000 lines of detailed information.
It will send a mail report if Errors are found ans use NoReply@mydomain.com as from address
It will use SSL when sending mail and uses port 465 (the default SSL SMTP port) in this example.
It will also use "PowershellAdministrator - Removing the human error step by step" as non-dynamic part
of the e-mail subject string.

LINKS
http://powershelladministrator.wordpress.com/2014/05/03/analyze-robocopy-log-files-and-mail-the-result/
http://PowershellAdministrator.wordpress.com