I need to export mailbox Size and Archive size to the same csv file.
I know to export the mailbox size I need to use Get-Mailbox | Get-MailboxStatistics | select-object Displayname,totalitemsize | export-csv .\filename.csv
to get archive size I need to use Get-Mailbox | Get-MailboxStatistics -archive | select-object totalitemsize | export-csv .\filename.csv
I need to know how to marge between this two commands.
Thank in advance. Avraham.