To find your company's Outlook data volume, start with the Exchange Mailbox usage report in Microsoft 365. It supplies mailbox item counts and storage. For a more specific mail-folder inventory across employees and shared mailboxes, use Exchange Online PowerShell and count the items in the selected mail folders.
The distinction matters: a mailbox can contain calendars, contacts and other records as well as email. If an AI data application asks for emails, label a mailbox-item total honestly rather than silently treating every item as an email.
This guide covers Microsoft 365 Exchange Online work mailboxes. It is one part of our business data inventory for AI labs.
Decide what the application needs
| Method | Result | Main limitation |
|---|---|---|
| Microsoft 365 Mailbox usage report | Mailbox items and storage | Items are not an email-only count |
| Exchange PowerShell folder inventory | Items in folders classified as mail folders | Folder statistics can include hidden or non-message items |
| Purview email search | Search-estimated email results | Search scope and indexing affect the estimate |
Ask whether to include shared addresses, group mailboxes, online archives, Junk, Drafts and Deleted Items. Also ask whether an email copied into several mailboxes should count once per mailbox or once across the company.
For initial screening, a scoped mail-folder total may be enough. If the buyer wants exact unique messages, that requires a defined item-level retrieval and deduplication process beyond folder statistics.
Method 1 Use the Microsoft 365 portal
You need access to usage reports, such as through an appropriate reporting role.
- Sign in to the Microsoft 365 admin center (opens in a new tab).
- Open Reports → Usage → Exchange.
- Open Email activity, select View More if shown, and use the report selector to choose Exchange → Mailbox usage.
- Display Item count, Storage used, recipient type and the relevant identity columns.
- Export the per-mailbox table and select the accounts in your inventory.
- Review the Shared view separately for shared mailbox coverage. Keep its results distinct until you confirm whether your export already includes those mailboxes.
- Record the report refresh date, collection date and included mailbox types.
Microsoft defines Item count as all items in the mailbox, and documents a limitation on exporting shared-mailbox summary charts. The ordinary table export and the summary chart are different outputs. Mailbox usage definitions and export notes (opens in a new tab)
Report this as “[N] mailbox items,” with storage if requested. Do not add sent and received activity totals as a substitute for stored mail: an activity count answers a different question.
If you need an email-specific portal estimate
An administrator with the necessary Purview access can open the Microsoft Purview portal (opens in a new tab), enter eDiscovery → Cases, create or open a case, then create a search under Searches. Select the intended Exchange mailbox data sources and use the KeyQL condition:
kind:emailRun the query with the Statistics view and download its report. Preserve the mailbox scope, query and any failed locations alongside the count. Microsoft documents kind:email as a mailbox search property; search statistics remain estimates and can differ from exported results. Mailbox search syntax (opens in a new tab), search result estimates (opens in a new tab)
This option needs more access and setup than a usage report. Ask the administrator to confirm the tenant's eDiscovery permissions and feature availability before choosing it.
Method 2 Use Exchange Online PowerShell
Use a supported PowerShell installation and an administrator account allowed to retrieve the relevant Exchange statistics. Installing the module affects your local user profile. These inventory commands read statistics and save CSVs locally.
Install-Module ExchangeOnlineManagement -Scope CurrentUser
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName 'admin@yourcompany.com'First inspect one mailbox you are authorized to inventory:
Get-MailboxFolderStatistics -Identity 'person@yourcompany.com' -IncludeOldestAndNewestItems |
Select-Object Name, FolderPath, ContainerClass, ItemsInFolder, OldestItemReceivedDate |
Format-Table -AutoSizeContainerClass describes the folder's class. The script below selects IPF.Note mail folders and adds ItemsInFolder once per folder. It does not add folder-and-subfolder totals, which would overlap parent and child counts. Exchange folder statistics can include hidden items; keep the result labeled as mail-folder items. Microsoft generally recommends the newer Get-EXOMailboxFolderStatistics for Exchange Online; this example uses the older supported cmdlet to inspect its container-class output. Get-MailboxFolderStatistics reference (opens in a new tab)
After checking the sample, run the inventory:
$ErrorActionPreference = 'Stop'
$inventoryDir = Join-Path (Get-Location) ('outlook-inventory-' + (Get-Date -Format 'yyyyMMdd-HHmmss'))
New-Item -ItemType Directory -Path $inventoryDir -ErrorAction Stop | Out-Null
$mailboxes = @(Get-EXOMailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox,SharedMailbox)
$groups = @(Get-Mailbox -GroupMailbox -ResultSize Unlimited)
$targets = @(@($mailboxes) + @($groups) | Sort-Object PrimarySmtpAddress -Unique)
if ($targets.Count -eq 0) { throw 'No target mailboxes found. Check Exchange access.' }
$folderRows = @(foreach ($mailbox in $targets) {
$address = [string]$mailbox.PrimarySmtpAddress
$folders = @(Get-MailboxFolderStatistics -Identity $address -IncludeOldestAndNewestItems -ErrorAction Stop)
$mailFolders = @($folders | Where-Object { $_.ContainerClass -eq 'IPF.Note' })
if ($mailFolders.Count -eq 0) { throw "No IPF.Note folders found for $address. Inspect its folder output." }
foreach ($folder in $mailFolders) {
[pscustomobject]@{
Mailbox = $address
MailboxType = [string]$mailbox.RecipientTypeDetails
FolderPath = $folder.FolderPath
FolderClass = $folder.ContainerClass
Items = [long]$folder.ItemsInFolder
OldestReceived = $folder.OldestItemReceivedDate
NewestReceived = $folder.NewestItemReceivedDate
}
}
})
$folderRows | Export-Csv (Join-Path $inventoryDir 'outlook-folders.csv') -NoTypeInformation
$mailboxRows = @($folderRows | Group-Object Mailbox | ForEach-Object {
[pscustomobject]@{
Mailbox = $_.Name
MailFolderItems = [long](($_.Group | Measure-Object Items -Sum).Sum)
}
})
$mailboxRows | Export-Csv (Join-Path $inventoryDir 'outlook-mailboxes.csv') -NoTypeInformation
[pscustomobject]@{
Mailboxes = $mailboxRows.Count
MailFolderItems = [long](($folderRows | Measure-Object Items -Sum).Sum)
Scope = 'Primary mailboxes; IPF.Note folders; online archives excluded'
CollectedAt = (Get-Date).ToString('o')
} | Format-List
Disconnect-ExchangeOnline -Confirm:$falseIf any mailbox fails, the script stops rather than presenting a partial company total as complete. Resolve the error or rerun with a documented narrower scope. If a group-mailbox query is unavailable to your role, record that limitation instead of interpreting it as no group mail.
Handle archives and deleted mail explicitly
The ordinary Archive folder inside a primary mailbox is different from an online archive mailbox. The script above does not inventory online archives. If they matter, identify archive-enabled mailboxes and run a separate folder inventory with -Archive, preserving primary versus archive labels.
The selected mail-folder classes can include Inbox, Sent, Drafts, Junk, Deleted Items and custom folders. Review the exported paths before submission. Recoverable or held data is a separate scope decision; do not assume this primary-folder inventory represents everything retained for compliance.
Establish historical coverage
Inspect the folder CSV's oldest and newest received metadata. Check unusually early dates before using the minimum as your company's start date. Drafts, migrations and malformed items can produce dates that do not describe real business correspondence.
In one November 2026 working inventory, an initial total of 282,373 reported mail-folder items spanned employee, shared and group mailboxes. A draft carried a 2001 timestamp even though normal business mail began in 2020. The useful answer described that exception rather than presenting 2001 as twenty-five years of business history.
Received-date metadata is also not the right date for every kind of sent or draft record. If the buyer requests an exact historical range, agree on the message date field and validate at item level.
Paste this into the questionnaire
Outlook: [count] [mailbox items/mail-folder items/search-estimated emails] across [scope]. Counted [date] using [method]. Online archives: [included/excluded]. Junk, Drafts and Deleted Items: [treatment]. Copies across mailboxes: [retained/deduplicated]. Historical coverage: [range and date definition, or not yet verified].
For a multi-tool application, add the separate Calendar count and Teams count with their own units. Once the inventory is ready, check your business's fit for data licensing.