Solved

Exchange Mailbox Report In Task Scheduler

Posted on 2013-12-16
2
656 Views
Last Modified: 2013-12-18
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\RemoteExchange.ps1'; Connect-ExchangeServer -auto; exchange2010MailboxReportV1.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
0
Comment
Question by:James McKand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Gregory Miller earned 500 total points
ID: 39723069
In the task scheduler, specify the desktop as the folder to Strat In under the action tab where you specify the script you are running. It is marked as optional. If you leave this blank, the script will create the output file where ever it is presently saved or where ever the script defines the output file to go.

The only other option is to modify your script to output to the Desktop folder.
0
 

Author Closing Comment

by:James McKand
ID: 39727479
I had tried the "Start In" - did not work.

Modified the script to place the html file in root of C:, then put a shortcut for it on the desktop.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question