Solved

Exchange Mailbox Report In Task Scheduler

Posted on 2013-12-16
2
632 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
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: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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

815 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