Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange Mailbox Report In Task Scheduler

Posted on 2013-12-16
2
Medium Priority
?
697 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 12

Accepted Solution

by:
Gregory Miller earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦
Suggested Courses

636 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