Forum Discussion
DimitarStoev
Mar 27, 2024Copper Contributor
Get the mailbox data size after a specific date.
Hello All, I need to split a large on-prem mailbox data on 2 before migrating to EXO. That Mailbox has to have 100GB in the Primary and 100GB in the Archive one. Could you advise how can I get t...
VasilMichev
Mar 27, 2024MVP
For on-premises Exchange you can use the New-MailboxExportRequest cmdlet with the ContentFilter parameter: https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps
There are some limitations, but should work for your scenario. If you are only looking for the size/count of messages after specific date, run a Search-Mailbox query with -EstimateResultsOnly.
For Exchange Online, you will have to run an eDiscovery export, or manually export via Outlook. Then delete the exported content.
There are some limitations, but should work for your scenario. If you are only looking for the size/count of messages after specific date, run a Search-Mailbox query with -EstimateResultsOnly.
For Exchange Online, you will have to run an eDiscovery export, or manually export via Outlook. Then delete the exported content.
DimitarStoev
Apr 09, 2024Copper Contributor
Thank you very much, VasilMichev ,
The following command gave us the information we were looking for:
New-MailboxExportRequest email address removed for privacy reasons -ContentFilter "(Received -gt '01/01/2020')" -FilePath "\\FilePath\MB.pst
Cheers,
Dimitar