Output to file if the Folder list is too long Get-MailboxFolderStatistics -identity <username> | sort-object folderSize -descending | Select-Object Name,FolderPath,@{name="Items";expression={$_.ItemsInFolder}}, @{name="Size (MB)";expression={$_.FolderSize.ToMB()}} | ConvertTo-HTML –head $a –body “<H2><font color=white>$UserMailbox Mailbox Size</font color></H2>”| Out-File C:\Test.html
Output to the screen Get-MailboxFolderStatistics -identity <username> | sort-object folderSize -descending | Select-Object Name,FolderPath,@{name="Items";expression={$_.ItemsInFolder}}, @{name="Size (MB)";expression={$_.FolderSize.ToMB()}}