• The minimum result size is 1000, so if you have more user then we need to add the switch -resultsize
Get-Mailbox -resultsize unlimited | select name,database | export-csv "c:\mailboxperdatabase2.csv"
Tagged with: