Hi all,
I have the below script to get info from all mailboxes with the quota details, but in the report.csv file i don't have quota details like you can see in the example below:
get-mailbox -server "servername" -results Unlimited | get-mailboxstatistics | select-object displayname, StorageLimitStatus, totalitemsize, databasename, @{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, @{Name="All Quota";expression={(Get-Mailbox $_.Identity | ft *Quota)}} | export-csv c:\report.csv
DisplayName StorageLimitStatus TotalItemSize DatabaseName TotalItemSize(MB) All Quota UserName BelowLimit 486.1 MB Server-Store04 486 Microsoft.PowerShell.Commands.Internal.Format.FormatStartData Microsoft.PowerShell.Commands.Internal.Format.GroupStartData Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData Microsoft.PowerShell.Commands.Internal.Format.GroupEndData Microsoft.PowerShell.Commands.Internal.Format.FormatEndData
I also need to get the user account name with the DisplayName.
can you please help?
Salento.