Export -Mailbox on Exchange 2007
I have searched about this about could not find a definitive answer in any documentation. When using export -mailbox to search for specific emails on an exchange server, does it simply copy the messages into a folder or pst or will it pull all messages and
move them from the original destination?
Thank You
January 10th, 2012 9:33am
export-mailbox will copy this emails, if you want to remove emails from source mailbox you have to use -deletecontent at the end of export-mailbox
Regards
Rem
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2012 10:23am
yes export-mailbox without -deletecontent only copies across,
if you want to delete then you must specify -deletecontent
you can read it all here http://blogs.technet.com/b/exchange/archive/2006/11/28/3397373.aspxRegards Herbert Zimbizi
January 10th, 2012 10:36am
thank you for the quick responses.
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2012 11:09am
Will running export - mailbox searches affect the performance of the exchange server to where it would be noticeable to the users? If so, should the search be run after hours??
January 10th, 2012 11:13am
can someone give me a hand and look at my syntax? I cant get this to run
get-mailbox –Database "Mailbox Database" | Export-Mailbox –SubjectKeywords "Insurance" –TargetMailbox Administrator –TargetFolder Search -Startdate "04/01/2010 12:01:00"
Thanks
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2012 10:23am
hm what kind of error you have ?
I use something like that:
Export-Mailbox -identity "some user" -StartDate "2011/09/01" -EndDate "2011/09/30" -PSTFolderPath "\\server\share\file.pst"
-deletecontent
or
Export-Mailbox -identity someuser -StartDate "2011/09/27" -EndDate "2011/10/25" -SubjectKeywords "*some subject*" -TargetFolder 'exportfolder' -TargetMailbox targetmailbox
or
Get-mailbox -database 'database1' | export-mailbox –SubjectKeywords "subject_some" -TargetFolder "exportedData" -TargetMailbox Administrator
–DeleteContent
you can have problem with date format, sometimes it's better to use function date like:
Export-Mailbox -identity someuser -StartDate $((get-date).adddays(-30)) -EndDate $((get-date).adddays(-1)) -SubjectKeywords "*some subject*" -TargetFolder 'exportfolder' -TargetMailbox targetmailbox
January 12th, 2012 2:07pm
thanks.
If I was doing a keywords search would i just put all the keywords i wanted to search in one long quotation. Like for example -SenderKeywords "Sports Basketball Baseball Hockey Football Soccer"
or does each one have to be quoted separated by commas?
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2012 3:21pm