Mailbox Export Exchange 2010

Does anyone know of a script or cmdlets that will allow you to export the contents of 1 mailbox to another mailbox. Trying to avoid exporting to pst.
LVL 16
timgreen7077Exchange EngineerAsked:
Who is Participating?
 
VB ITSSpecialist ConsultantCommented:
You could look at using the Search-Mailbox cmdlet but it won't work anywhere near as well as the New-MailboxExportRequest and New-MailboxImportRequest cmdlets (which exports to a PST file).

I would recommend you go with the latter for the sake of simplicity as the Search-Mailbox cmdlet doesn't do a straight copy of the entire mailbox, it will create a new folder in the destination mailbox with the source user's name and the date/time the copy ran instead.

For example, if I run the Search-Mailbox command to do a copy at 12PM then a subfolder named Source-User-12/19/2014 12:00:00 PM gets created in the target folder in the destination user's mailbox. Not ideal. Go with the mailbox export and import method instead as it's a lot cleaner.

You can use these commands to copy over the contents:
New-MailboxExportRequest -Mailbox "<Source User>" -FilePath "\\Server\Share\Source User.pst"
New-MailboxImportRequest -Mailbox "<Destination User>" -FilePath "\\Server\Share\Source User.pst" -TargetRootFolder SubFolderInPrimary

Open in new window

Note that the Exchange Trusted Subsystem account must have read/write permissions to \\Server\Share\ in order for you to be able to use this location for mailbox exports.
0
 
bobluisCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.