Avatar of swan_solutions
swan_solutions
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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.
PowershellMicrosoft 365

Avatar of undefined
Last Comment
S_K_S

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Vasil Michev (MVP)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
S_K_S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
swan_solutions

ASKER
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.
Vasil Michev (MVP)

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

Suggestions Provided
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes