Skip to main content

Statistics

For full parameter descriptions and up-to-date notes, run Get-Help Export-MboxStatistics -Detailed.

Export-MboxStatistics

Export mailbox statistics (size, quotas, archive info) either to CSV (all mailboxes) or as objects (single mailbox).

Syntax

Export-MboxStatistics [-UserPrincipalName <String>] [-CsvFolder <String>] [-Round] [-BatchSize <Int>]
ParameterDescriptionRequiredDefault
UserPrincipalNameOptional single mailbox identity; when omitted, all mailboxes are exported to CSV.No-
CsvFolderOutput folder (for all-mailbox export).NoCurrent directory
RoundRound quota values up to the nearest integer GB.NoFalse
BatchSizeFlush to CSV every N mailboxes.No25

Examples

# Export every mailbox to CSV (batched writes)
Export-MboxStatistics -CsvFolder 'C:\Temp\Reports' -Round

# Inspect a single mailbox as objects
Export-MboxStatistics -UserPrincipalName 'user@contoso.com'