Export-Mailbox as a scheduled task?
My organization is in the process of migrating from Exchange 2003 to Exchange 2007. We've been using the Exmerge utility to create an additional pst backup of all of the mailbox stores in our organization. I have figured out the equivilent command shell task to run in order to accomplish this, but I'm wondering if there is a way to schedule this as a task to auto run, because i'm affraid i may have to run it manually.In addition to that question, once you enter the entire command you want to execute when it gets to the first mailbox it asks you are you sure... blah blah... and you have to choose either Yes for the one mailbox or "A" for All. Is there a way in the command to have this automatically assume the "A" for all??? here's the command i'm running right now:Get-Mailbox Database"<servername\database name>"| Export-Mailbox PSTFolderPath <folder path for export>here's the exact prompt you get:ConfirmAre you sure you want to perform this action?Exporting mailbox content from the mailbox 'Paulina Gonzales' into .pst file'z:\gemex07\pgonzales.pst'. This operation may take a long time to complete.[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help(default is "Y"):So as i mentioned above, is there a way to make it assume the A and just do it?And can i schedule this?Robert Farmer
August 19th, 2009 8:09pm

Use... Get-Mailbox Database"<servername\database name>"| Export-Mailbox PSTFolderPath <folder path for export> -Confirm $false OR Get-Mailbox Database"<servername\database name>"| Export-Mailbox PSTFolderPath <folder path for export> -Confirm:$false to run without confirmation... For Scheduling Exchange tasks check here... How To: Schedule PowerShell Script for an Exchange Task http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
August 19th, 2009 8:19pm

Man you are two for two this week! you are the man! Thanks!Robert Farmer
August 20th, 2009 12:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics