This script demonstrates how to use Exchange Web Service Managed API to get mailbox folder statistics for large mailbox in Office 365 Exchange Online.
Some of you find your Outlook is frozen when receiving emails. One workaround is moving the large emails to a new folder to allow Outlook finish the synchronization. But before moving these large emails, we need to identify these large email messages and find a proper destination folder for these emails.
Although, Office 365 administrators can use Get-MailboxFolderStatistics to help helpdesks to check the folder size. It’s better to provide a script to reduce the support calls to these administrators in one company.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery