James McKeand
asked on
Exchange Mailbox Report In Task Scheduler
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 1.ps1"
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
Server 2008
I can run the script via powershell with:
PowerShell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExcha
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
Server 2008
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Modified the script to place the html file in root of C:, then put a shortcut for it on the desktop.