Exporting Mailboxes from Exc 07 to PST's

Dear Experts,

I need to export all mailboxes of our old exchange 2007 server -  I want to decommission the server.

I know how to do it for a single mailbox from the shell but is there an option to do all existing mailboxes on the exc 2007 server? There is about 60 mailboxes and I would ideally would want to export all of them in 1 batch.

Thank you
Leroy LuffHead of IT & DIgitalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:

You can use Export-mailbox powershell command

The Export-Mailbox cmdlet exports all empty folders and special folders to the target location. The special folders are the following:

•Deleted Items
•Junk E-Mail
•Sent Items

Create a text file like mailbox.txt with your alias names like:


Then from the powershell command Enter

mailbox.txt | Export-mailbox -PSTFolderPath C:\Exportsfolder


MASEE Solution Guide - Technical Dept HeadCommented:
Export all mailboxes from the selected mailbox database:
Get-Mailbox -Database "PCBOX\First Storage Group\Mailbox Database" | Export-Mailbox -PSTFolderPath d:\temp\export

Open in new window

Entire Exchange organization
Get-Mailbox | Export-Mailbox -PSTFolderPath d:\temp\export

Open in new window

But for all these you need Exchange2007-SP1(32bit) management tools installed on a different PC/Server

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
Leroy LuffHead of IT & DIgitalAuthor Commented:
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.