Link to home
Start Free TrialLog in
Avatar of mylat
mylat

asked on

How to Export and import an inbox contet from a mailbox to another mailbox exchange 2007 with minimum effort

Hi,

How to Export and import an inbox contet from  a mailbox to another mailbox exchange 2007 with minimum effort , without duplication and a selected period.  

I have lost some old mails  due to a certain incident on 25th July, 2011.  I have a full backup with me of 1st July , 2011.  Through Symantec Backup exec i restore my backup from Juyly 1st data to a test mailbox.  Now i want to import those data in my original mailbox , by avoiding duplication .  I know it was easy earlier with exchange 2003 by exmerge but unfortunately microsoft removed that option exchange 2k7.  

what is the best practice in my scenario ? Could you please help me.
Avatar of thakurdinesh
thakurdinesh
Flag of United States of America image

You have to use the Export-Mailbox cmdlet to export the mails by using switch..

E.g.
Export-Mailbox -Identity ABC -SubjectKeywords "Doc" -IncludeFolders "\Inbox" -StartDate "04/02/2011" -EndDate"04/04/2011" -PSTFolderPath d:\ABC.pst

Now import this PST to the mailbox..
SOLUTION
Avatar of thakurdinesh
thakurdinesh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can import inbox based on the Date/Time range, if you are familier with PowerShell, you can write a script to delete the duplicate entries.. but if that is not helpful, I would suggest you to import all itemes including duplicate items and then install a free plugin to remove the duplicate items from mailbox, this is a bit of pain I know..

you can use this app
http://www.olfolders.de/Lang/English/OLfix/index.htm
Hello,

Please know that powershell command line export and import is an extension of Exmerge only
You can use Export and Import Mailbox commands for doing that and you dont need to worry about duplicates as it performs that check automatically

refer: http://technet.microsoft.com/en-us/library/bb629586%28EXCHG.80%29.aspx

Only if you want to allow duplicate in your import you can use the switch allowduplicates otherwise by default it will not allow duplicates

You can proceed with export and import command line without issues

Regards
Jabri
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mylat
mylat

ASKER

Hi ,

i am not able to import and getting the attached error.
error.JPG
Can you please post the Cmdlet you are trying to execute? because the SS not showing what you are passing.

To export to PST file
Export-Mailbox -Identity abc -IncludeFolders "\Inbox" -StartDate "04/02/2011" -EndDate"10/04/2011" -PSTFolderPath d:\doc.pst

To export to other mailbox
Export-Mailbox -Identity "mailboxA"  -IncludeFolders "\Inbox" -StartDate "04/02/2011" -EndDate "10/04/2011" -TargetMailbox "mailboxB" -TargetFolder "Inbox"

or
(it will delete the contents from mailboxA after being exported)
Export-Mailbox -Identity "mailboxA"  -IncludeFolders "\Inbox" -StartDate "04/02/2011" -EndDate "10/04/2011" -TargetMailbox "mailboxB" -TargetFolder "Inbox" -DeleteContent  
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello,

From the error i can see that you have mentioned 29/03/20011 as a start date... Please correct the date or year  and try again

Regards
Jabri
Avatar of mylat

ASKER

Please close this case.