Forum Discussion
Sam_T
Apr 22, 2022Iron Contributor
How to get an accurate message count for a user mailbox?
We have a process by which we decommission a user mailbox after they have left the firm and that involves having a 3rd party archiving solution archive all of their messages then remove them from the...
VasilMichev
MVP
You have the VisibleItemsInFolder property in Get-MailboxFolderStatistics output, which should give you a count that matches what you see in clients.
Sam_T
Apr 22, 2022Iron Contributor
Hello Vasil,
Thanks for your response. I'm not seeing where VisibleItemsInFolder is a valid property for Get-MailboxFolderStatistics . I've looked at that on Exchange 2019/2016/2013.
Thanks for your response. I'm not seeing where VisibleItemsInFolder is a valid property for Get-MailboxFolderStatistics . I've looked at that on Exchange 2019/2016/2013.
- VasilMichevApr 23, 2022MVPHm, I tested only against Exchange Online, so it might be a cloud-only thing 😕
[18:23:41][O365]# Get-MailboxFolderStatistics vasil -FolderScope Inbox | select *ItemsInFolder*
VisibleItemsInFolder : 6615
HiddenItemsInFolder : 150
ItemsInFolder : 6765
DeletedItemsInFolder : 0
ItemsInFolderAndSubfolders : 6777
DeletedItemsInFolderAndSubfolders : 0- Sam_TApr 24, 2022Iron ContributorThanks for checking Vasil.