Apr 22 2022 07:16 AM
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 users mailbox.
Prior to removing the users mailbox we want to verify that the message count for that mailbox is zero. Unfortunately, both Get-MailboxStatistics and Get-MailboxFolderStatistics both appear to count hidden messages in the mailbox. For example, we've confirmed that there are no visible items in any folder of a particular user by viewing all of these folders in Outlook. However, Get-MailboxFolderStatistics returns 7 items and Get-MailboxStatistics returns an ItemCount of 3 and and AssociatedItem count of 8 so all of this is is obviously not accurate in terms of actual messages.
I understand that Get-MailboxFolderStatistics does enumerate hidden items but I'm surprised that Get-MailboxStatistics has the same issue and there is no apparent way to get an accurate count of messages in a users mailbox.
Does anyone have insight on how to get an accurate message count for a user mailbox ?
Apr 22 2022 08:27 AM
Apr 22 2022 09:19 AM
Apr 23 2022 08:24 AM
Apr 23 2022 06:12 PM