My organization is huge (600,000+ mailboxes) with vastly distributed servers across a wide geogrphy. One location is served by 8 mailbox servers. I want to run a report that will list all users that have a mailbox larger than 6 GB by database and limit the report to just those 8 servers, not the entire enterprise (we have many maiilbox servers).
I think there is a way to list the 8 servers in a csv file? And from that csv file I will need the report to generate where mailbox size is greater than 6 GB and the name of the database on which that mailbox is hosted.
The below query works but explores the entire enterprise, takes a long time to run.
get-mailbox -resultsize unlimited | Get-MailboxStatistics | where {$_.TotalItemSize -ge 6GB} | Select DisplayName,TotalItemSize, Database | Sort -Descending -Property TotalItemSize | Export-CSV C:\output.csv –NoTypeInformation
mcseford