I'm having some trouble exporting mailbox data from Exchange 2010. I am running the Get-MailboxStatistics cmdlet and need the following fields to be exported.
DisplayName, Title, Department, Office, Enabled, Expires, LastMailboxLogon, MailboxSizeMB, Type, ServerName, Database, ItemCount, PrimarysmtpAddress
I am running the following but its not working; can anyone help please?
Get-MailboxStatistics -Database ALL | Select DisplayName, Title, Department, Office, Enabled, Expires, LastMailboxLogon, MailboxSizeMB, Type, ServerName, Database, ItemCount, PrimarysmtpAddress | Sort-Object MailboxSizeMB -Descending | Export-CSV C:\MailboxStats\ALL_MBSizes.csv
Thanks,
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.