I have this pipeline:
Get-Mailbox -ResultSize Unlimited –RecipientTypeDetails UserMailbox,SharedMailbox |
Where {(Get-MailboxStatistics $_.Identity).LastLogonTime -gt (Get-Date).AddDays(-36)} |
Sort -Property @{e={( Get-MailboxStatistics $_.Identity).LastLogonTime}} -Descending |
Select-Object DisplayName,@{n="LastLogonTime";e={(Get-MailboxStatistics $_.Identity).LastLogonTime}} |
Get-MailboxStatistics |
Select-Object displayname, totalitemsize |
Export-Csv -Path 'C:\JV'
but the output never gets the third column in the output table - size.
DisplayName LastLogonTime
----------- -------------
Some User 2/8/2022 2:47:26 PM
Another Name 2/8/2022 2:46:59 PM
Yet AnotherName 2/8/2022 2:46:54 PM