Exporting / Archiving e-mail in inbox folder and its many sub-folders using powershell

Can you please give me a clear command line syntax example on how to export / archive inbox that include many sub-folders in powershell?

Mustafa OsmanMDAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if you are using 2010 then its quite easy as its built into the powershell functionality by default

New-MailboxExportRequest -Mailbox Mailbox Name -FilePath \Share Path.pst

for mailbox name it can be user name, email address etc
the output PST needs to be to a fileshare and not to a local path of the exchange server i.e. c:\

this has all the steps listed out from enabling the RBAC permissions to running and monitoring the exports


if you are using 2007 then its a bit more complex. You will need a 32bit Desktop with Outlook and the 32bit Exchange management tools installed on there

this technet article articulates all the right steps


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

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.