Hello,
I am trying to run a script that will find all the usermailbox in Exchange Online and extract the following data in a table:
1. Name.
2. Email Address.
3. Office location.
4. Mailbox size.
5. Mobile devices configured.
I have achieved the output of the 1-4 using the command below:
$a=Get-Mailbox -ResultSize unlimited -RecipientTypeDetails usermailbox
$a|FT identity, windowslive*, ProhibitSendReceiveQuota, usagelocation
For step 5, I have run
$g=$a|foreach-object{Get-MobileDevice -Mailbox $_.Name|FT FriendlyName, DeviceOS, UserDisplayName}
However, I need a way to print this output in a table, Any ideas?