Archive emails to pst using exchange cmd - reduce mailbox size

Hi all,

Just need some help archiving emails out of user exchange mailboxes on server level using exchange cmd. I like to export all emails out of users mailbox to pst to reduce size of mailbox. I also need to ensure emails only older than a month gets archived.

Unable to engage users hence keen on accomplishing this from exchange server.
Zac MzeeIT System AdministratorAsked:
Who is Participating?

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

x
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.

Adam BrownSr Solutions ArchitectCommented:
It's not easy to do for the whole environment. https://technet.microsoft.com/en-us/library/ff607299(v=exchg.160).aspx has the command you need to export the mailboxes, using the contentfilter switch. https://technet.microsoft.com/en-us/library/dd298173(v=exchg.160).aspx will let you delete the messages after export. Just use the same filter language for each and it should take care of things.

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
Tom CieslikIT EngineerCommented:
Exporting mailbox contents to a PST file is achieved using the MailboxExportRequest cmdlet. It has only 2 obligatory parameters: –FilePath – defines the network share path of the PST file to which you want to export the data; and –Mailbox – defines the Alias, SMTP address or Display name of the mailbox you will export. Requirements:

The user performing the export must be a member of a role group which has the Mailbox Import Export role added. The easiest way of achieving this is running this script:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "<user name or alias>"

Open in new window


Here is an example of a mailbox export request, which backs up an entire mailbox to a PST file:

New-MailboxExportRequest -Mailbox <user> -FilePath \\<server FQDN>\<shared folder name>\<PST name>.pst

Open in new window

Marshal HubsEmail ConsultantCommented:
Download Stellar EDB to PST Converter to export users mailboxes to pst to reduce the size of mailbox. For more information about the software, check this link: https://www.stellarinfo.com/email-repair/edb-pst-converter.php
Tom CieslikIT EngineerCommented:
I've provided direct command how to do it, so I don't understand Seth Simons judgment
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
Exchange

From novice to tech pro — start learning today.