CmdID / PowerShell / Cmdlets / Get
Get-EXOMailboxFolderStatistics
Use the Get-EXOMailboxFolderStatistics cmdlet to retrieve information about the folders in a specified mailbox, including the number and size of items in the folder, the folder name and ID, and other information. Exchange PowerShell reference
From the Exchange PowerShell reference 9 parameters Its page in the reference
Parameters
-ArchiveThe Archive switch specifies whether to return the usage statistics of the archive mailbox that's associated with the mailbox or mail user.-DiagnosticInfo-ExternalDirectoryObjectIdThe ExternalDirectoryObjectId parameter identifies the mailbox that you want to view by the ObjectId in Microsoft Entra ID.-FolderscopeThe FolderScope parameter specifies the scope of the search by folder type.-IdentityThe Identity parameter specifies the identity of the mailbox or mail user.-IncludeOldestAndNewestItemsThe IncludeOldestAndNewestItems switch specifies whether to return the dates of the oldest and newest items in each folder.-IncludeSoftDeletedRecipientsThe IncludeSoftDeletedRecipients switch specifies whether to include soft-deleted mailboxes in the results.-PrimarySmtpAddressThe PrimarySmtpAddress identifies the mailbox that you want to view by primary SMTP email address (for example, navin@contoso.com).-UserPrincipalNameThe UserPrincipalName parameter identifies the mailbox that you want to view by UPN (for example, navin@contoso.onmicrosoft.com).