Quantcast
Channel: Microsoft Exchange
Viewing all articles
Browse latest Browse all 20055

Exchange Shell command to export Mailbox Details

$
0
0

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...


Viewing all articles
Browse latest Browse all 20055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>