Export all emails sent to and/or received from an email address
Greetings. I am attempting to use the export feature for Exchange 2007 but need some command line help. What I hope to accomplish is to export all emails sent to and/or received from an email address. Below is the command I tried using but I get all kinds of ____ that is not related. Also is there a way to tell it to export emails only, other than using the exclude, I do not want task, contacts, or calendar items ; the only items I want exported are emails. In a perfect world all the exported emails would go directly into a PST file. If anyone knows of a better way to do this other than the export utility please speak up. Get-mailbox -database "Server\Mailbox Database" | export-mailbox -ContentKeywords "sendername@senderdomain.com" -ExcludeFolders "\ task ","\Contacts",”\ calendar” -TargetFolder "Target" -TargetMailbox AdministratorMike
October 29th, 2010 5:17pm

Check out Lucid8's DigiScope http://www.lucid8.com/product/digiscope.aspTroy Werelius www.Lucid8.com
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2010 5:54pm

Thanks Troy, I will give that a look. The lack of responses is surprising.Mike
October 31st, 2010 1:09pm

Hi Mike, Sorry for delaying response. If you want to export all mails sent to and /or received from an email address, you can just export mails in this specified mailbox's Inbox or Sent Items, e.g. Export-Mailbox -Identity "email address" -IncludeFolders "\Inbox","\Sent items" -PSTFolderPath c:\pst\user.pst About Export-Mailbox http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspxFrank Wang
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 4:43am

Hi Mike, Any updates?Frank Wang
November 2nd, 2010 5:15am

Some more information:: http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx To export data from a .pst file, you must run the Export-Mailbox cmdlet from a 32-bit computer that has the following installed: The 32-bit version of the Exchange management tools Outlook 2003 Service Pack 2 (SP2) or Outlook 2007 Question: If anyone knows of a better way to do this other than the export utility please speak up Ans: You can also copy emails from Inbox and sent items but its not much feasable. a. Add mailbox as secondary in your outlook b. Move Inbox and sent items into new folder in your machine (YOu can create PST) c. All moved email wil be in dupster and can be seen in "Recover deletet Itesm". Go in recover deleted items and recover all emails which you moved. d. Now you will have one copy in your machine and source mailbox also will have its own emails. Hope it will help you.Anil
Free Windows Admin Tool Kit Click here and download it now
November 2nd, 2010 11:23pm

you can use following cmdlet also for exporting a mail from a folders. Get-Mailbox & Get-User Regards, Ajaj Desai (India)
November 3rd, 2010 5:34am

Hi Mike, Any updates on your issue?Frank Wang
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2010 11:00pm

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

Other recent topics Other recent topics