Link to home
Create AccountLog in
Avatar of GCTTechs
GCTTechsFlag for United States of America

asked on

Exchange 2010 CMDLETS help - Get-MailboxStatistics

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,
ASKER CERTIFIED SOLUTION
Avatar of Amit
Amit
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.