Forum Discussion
Archive a 55GB Mailbox
- May 10, 2019
Hello Travis. One method that I have used in the past to break up a large PST is to use a contentFilter to export only a few weeks or months at a time. For example look at the creation date on the mailbox
get-mailbox myArchiveMailbox | fl *creat*
or use best guess for how far back the mail data goes. then create mailboxexportRequests for each
New-MailboxExportRequest -Mailbox myArchiveMailbox -ContentFilter {(Sent -gt "05/01/2019") -AND (Sent -lt "05/10/2019")} -filepath "\\myFileServer01\d$\breakout01.pst" -batchname "myArchiveBreakout" -baditemlimit 500 -acceptLargeDataLoss
this would create a mailboxexport to breakout01.pst on fileserver myFileServer01, d: drive. for all mail sent from may 1st to may 10 (at 12:00am). without a time specified, it will equal 12:00am.
I have used this method in the past to do exactly what you are asking, without 3rd party tools. You hopefully do not need to create too many of these but if you do, let me know and I can help you script out the creation of several hundreds of these (i.e. every 2 weeks for a 2 year process).
Finally, with several dozen exports queued up, you can check the status with:
get-mailboxexportRequest -batchname "myArchiveBreakout"
and
get-mailboxexportRequest -batchname "myArchiveBreakout" | get-mailboxexportRequestStatistics
Best of Luck!
Exporting to PST is generally larger compared to the Mailbox size, this could be due to the dumpster.
Run the below command and check the size of the Recoverable Items
Get-MailboxFolderStatistics <Identity> -FolderScope RecoverableItems | Format-List Name,FolderAndSubfolderSize
You would need to purge all the items in the Deleted items or move them to the archive mailbox before you export a .PST
ApoorvaKasbekar wrote:Exporting to PST is generally larger compared to the Mailbox size, this could be due to the dumpster.
Run the below command and check the size of the Recoverable Items
Get-MailboxFolderStatistics <Identity> -FolderScope RecoverableItems | Format-List Name,FolderAndSubfolderSize
You would need to purge all the items in the Deleted items or move them to the archive mailbox before you export a .PST
I am now attempting a solution that looks promissing however theres a downside.
I am using the search-mailbox command to query emails by years and transfer the emails to another mailbox, then export it after each transfer. This is the best solution so far however, th search-mailbox command supports only 10000 file at a time and that is troublesome. The command advises to use the New-mailboxsearch to obtain more option but the switches are not the same and i have no idea where to begin.
I manage to obtain a command online, tried it but it requires in-placehold enabled. I dont require all that i just wana transfer emails that i can specified by years, an unlimited quantity to another mailbox where i can export it - simple
Anyone familiar with the New-searchmailbox command?