Trying to extract mailboxes that are not using the database defaults and include their name, database and quota information. That is fine I can get all of that from get-mailbox -
"Get-Mailbox -ResultSize unlimited | where {$_.UseDatabasequotadefaults -ne "true"} | select displayname, database,issuewarningquota,prohibitsendquota"
And pipe to a file.
What I would like to include is the totalitemsize (size of mailbox) include with this which is only available from Get-MailboxStatistics. How can I include this in my above code ?
Thanks in advance!