Email reporting added to Purge Logfile script

The PowerShell script to purge IIS and Exchange Server 2013 has been updated to support email reporting.

When executed by a scheduled task it is extremely helpful to Exchange Administrators to receive some sort of conformation of the script execution.

If using the SendMail switch, a summary report is sent as an Html email

Parameters added:

.PARAMETER SendMailSwitch to send an Html report.PARAMETER MailFromEmail address of report sender.PARAMETER MailToEmail address of report recipient.PARAMETER MailServer SMTP Server for email report



This post has first been posted on my legacy blog.

%d Bloggern gefällt das: