Archive Office 365 mailbox from the admin portal or a Powershell

I know you can Export any Office 365 mailbox to a PST file, however we would like to archive the 365 mailbox to a PST file from either from the  Security and Compliance on the amin portal, or by a powershell. It must archive the mailbox and remove the contents so we can remove that account.
swan_solutionsAsked:
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.

Vasil Michev (MVP)Commented:
So what's the difference between Export in Archive in your case? Simply do the export and delete the account, or remove the license. You can purge the items if you want, but there's no point in doing this if you are going to remove the account anyway. Here's how, just in case: https://support.office.com/en-us/article/Search-for-and-delete-email-messages-in-your-Office-365-organization-Admin-Help-3526fd06-b45f-445b-aed4-5ebd37b3762a#step3
1

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
S_K_SCommented:
Kindly review if the discussion on the below link helps

https://www.experts-exchange.com/questions/29050775/Policy-for-Leavers.html
0
swan_solutionsAuthor Commented:
Thanks Vasil for your reply,

From what I can see Export takes a copy of the mailbox. Archive removes emails off Office 365 to a PST file.

I forgot to put some additional information in the original statement.

We may need to archive and remove Email between two dates and leave the rest in the mailbox.

In another case we may need to archive off all the emails, but preserve the data structure and rules. So exporting the mailbox and then purging it by deleting it is not ideal.

However link you have posted may have the answer. I'll try this later.
0
Vasil Michev (MVP)Commented:
Archive does not remove messages to a PST file, that's the "client-side" archiving functionality. What Archive means in the SCC is moving messages to a separate, "Archive" mailbox, attached to the primary one. Those messages can still be accessed by the user from Outlook or OWA, there are no PST files involved. It works with the so-called "retention" policies in Exchange, that can automatically move messages to the Archive mailbox, or delete them if needed: https://technet.microsoft.com/en-us/library/dd297955(v=exchg.150).aspx

For removing specific messages, eDiscovery search and delete is your best option, check the article I linked previously.
0
S_K_SCommented:
Suggestions Provided
0
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
Powershell

From novice to tech pro — start learning today.