Solved

Exchange Mailbox Report In Task Scheduler

Posted on 2013-12-16
2
627 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:jmckeand
2 Comments
 
LVL 11

Accepted Solution

by:
Technodweeb 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:jmckeand
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now