I have created a small script that can retrieve the itemcount for a mailbox.
Is it possible to do the 2nd Where? The output should only be the number of mails received on a given date.Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
$filecsv = "Mail_Export.csv"
$date = get-date -uformat %d/%m/%Y
$output = get-mailbox | get-mailboxstatistics | where {$_.ObjectClass –eq “Mailbox”} && where {mails with received date are equal to $date} | select $_.ItemCount
$output | export-csv -path $filecsv -encoding utf8 -notypeinformation