I am attempting to run the following script via task Scheduler: Exchange 2010 Mailbox Report
I can run the script via powershell with:
PowerShell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExcha
nge.ps1'; Connect-ExchangeServer -auto; exchange2010MailboxReportV
I have commented out the "sendMail" command on the last line of the scrip, because I don't need the file emailed . The html file is created in the current directory.
When I try to run the same command via Task Scheduler the html file is created in the /windows/system32 directory. If I try to open the file I just get the home page.
I want to have the file created on the desktop. Any Ideas?
Exchange 2010 SP3 with Update Rollup 4