Exchange environment report - via email

I'm using the script from Steve Goodman http://www.stevieg.org/2011/06/exchange-environment-report/

It saves ok.  But I'm trying to get the report emailed to me and I'm not getting it.  Not sure if I need something else configured.

.\Get-ExchangeEnvironmentReport.ps1 -HTMLReport .\ExchangeReport.html -SendMail:$true MailFrom:report@mydomain.com -MailTo:Joe.user@mydomain.com -MailServer:EXCH01

February 19th, 2015 3:26pm

Hi,

Please make sure the script in the following link has been downloaded and saved correctly in your environment:

https://gallery.technet.microsoft.com/office/Generate-Exchange-2388e7c9

Make sure the report@mydomain.com and joe.user@mydomain.com can be resolved in your GAL. Maybe we can change the command to the following command to have a try:

.\Get-ExchangeEnvironmentReport.ps1 -HTMLReport .\ExchangeReport.html -SendMail:$true MailFrom:Joe.user@mydomain.com -MailTo:Joe.user@mydomain.com -MailServer:EXCH01

Regards,

Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 2:51am

Winnie,

Yes, that is the script I am using.  I even tried my email address for the To and From. Also tried the script from both the CAS and from mailbox servers.

Is their a exchange log that I could look at that would show if the email is being generated?

February 20th, 2015 7:44am

I am not sure of any 'logs' that can tell you this but you can run 'Get-TransportServer | Get-MessageTrackingLog -Sender youremailaddress'   This will show you if it even tried sending a message.
  • Marked as answer by redmars7 20 hours 10 minutes ago
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 8:16am

Josh,

Thanks.  I found the reports, I had a rule in my outlook to move messages with reports in the subject to a sub folder.

I modified the command you provided.

Get-TransportService | Invoke-Command {Get-MessageTrackingLog -resultsize unlimited -start (get-date).adddays(-2) -end (get-date) -eventid Deliver | ? {$_.messagesubject -like "Exchange Environment Report*"}}

Thanks

February 20th, 2015 10:43am

I am not sure of any 'logs' that can tell you this but you can run 'Get-TransportServer | Get-MessageTrackingLog -Sender youremailaddress'   This will show you if it even tried sending a message.
  • Marked as answer by redmars7 Friday, February 20, 2015 3:39 PM
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 4:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics