I'm attempting to grab all mailbox statistics from every database, and then pipe that out into a CSV for review. When I run my script, I keep getting a message stating that "-database can't be null". This is what I have - can you tell me what's wrong with this line?
$MailboxStatistics = Get-MailboxStatistics -Database $_.Name