I am after a Powershell script that will get me the following info for a single database
name, totalitemsize, PrimarySMTPAddress, Emailaddresses
The problem I'm having is that 2 pieces of the info I want are properties of the get-mailbox cmdlet and the other 2 are of the get-mailboxstatistics cmdlet, how can I get all the info in one go.
I run the below to give me the info from get-mailboxstatistics but cant get the additional info I want.
get-mailboxdatabase "Mailbox Database 01" | Get-mailbox | get-mailboxstatistics | ft displayname,totalitemsize