I have this following script that works, but I want to fix something and add something;
$mailboxes=get-mailbox -organization "organization_name" -results Unlimited
$results=ForEach($mb in $mailboxes){
$stats=get-mailboxstatistics $mb
$props=@{
DisplayName=$mb.displayname
WindowsEmailAddress=$mb.WindowsEmailAddress
TotalItemSize=$stats.totalitemsize
ProhibitsendReceiveQuota=$mb.ProhibitsendReceiveQuota
}
New-Object PsObject -Property $props
}
$results | Sort-Object TotalItemSize -descending | ft -auto > c:\temp\organization_name.csv
The first issue is, that when it's exported to .csv the e-mail address column is incomplete and ends like this;
"user@organi........"
I need the full email address - since it's useless if I have to re-type all the addresses out afterwards anyway.
Then I would also like to add more detail in the export; I want to add; "Alias, "Forwarding address" to the exported list.
Microsoft Support said that they do not provide shell command support. I can't find what I'm looking for on Google, each and everyone's scripts looks different.
Thanks for any suggestions.