Hello,
I am trying to setup exchange environment report to run as a schedule task but cant seem to make it work at all.
I have setup the schedule task as below :
The argument is as follows :
-NonInteractive -WindowStyle Hidden -command ". 'D:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; D:\Powershell Scripts\EER\Get-ExchangeEnvironmentReport.ps1 -HTMLReport c:\users\windowsboss\desktop\report.html -SendMail:$true -MailFrom:EER@test.com -MailTo:winadmins@test.com -MailServer:mailserver.test.com
Any ideas why it is not working ? :S