I am not sure if this is the right place for such query but i am looking for Exchange shell command which can export the following details in csv format per database -
Display name, ItemCount, LastLoggedOnUserAccount, ObjectClass, TotalItemSize, ServerName and DatabaseName and PrimarySmtpAddress.
I have been trying several command combination but every time I just don't get smtp address field in CSV file.
If i remove PrimarySMTPAddress then i do get all the details but i need to have SMTPaddress as well in the same command.
This is the command i am trying but unable to get the details.
Get-MailboxDatabase "DB Name"| Get-Mailboxstatistics | Sort totalitemsize -desc | select-object identity,lastlogontime,lastlogofftime,DisplayName,PrimarySmtpAddress | Export-CSV c:\data.csv
Does anyone have shell command which can help get the desired result...